move MaxRows() method into cgrid

This commit is contained in:
Bradley Cicenas
2017-03-08 11:52:31 +11:00
parent d7f9f715bb
commit a6ee6edb1d
3 changed files with 7 additions and 10 deletions

View File

@@ -87,9 +87,9 @@ func (gc *GridCursor) Down() {
if idx >= (gc.Len() - 1) {
return
}
if idx >= maxRows()-1 {
return
}
//if idx >= maxRows()-1 {
//return
//}
active := gc.containers[idx]
next := gc.containers[idx+1]