You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the comments in this function it's supposed to return a minimum 2x2 square:
// Size returns the content size, based on the model.func (a*CellView) Size() (int, int) {
// We always return a minimum of two rows, and two columns.w, h:=a.model.GetBounds()
// Clip to a 2x2 minimum square; we can scroll within that.ifw>2 {
w=2
}
ifh>2 {
h=2
}
returnw, h
}
However the comparison operators are incorrect, so it's actually returning a maximum 2x2 square
The text was updated successfully, but these errors were encountered:
chrBrd
added a commit
to chrBrd/tcell
that referenced
this issue
Sep 8, 2022
Fixesgdamore#553
This function is supposed to return a minimum 2x2 square. However, as the comparison operators are the wrong way around a maximum 2x2 square is returned instead. Inverting the comparison operators fixes the issue.
Fixes#553
This function is supposed to return a minimum 2x2 square. However, as the comparison operators are the wrong way around a maximum 2x2 square is returned instead. Inverting the comparison operators fixes the issue.
According to the comments in this function it's supposed to return a minimum 2x2 square:
However the comparison operators are incorrect, so it's actually returning a maximum 2x2 square
The text was updated successfully, but these errors were encountered: