ecere/gui/controls/ListBox: Fixed remaining issue caused by moving fix
authorJerome St-Louis <jerome@ecere.com>
Thu, 12 Mar 2015 02:47:14 +0000 (22:47 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Dec 2015 19:09:26 +0000 (14:09 -0500)
ecere/src/gui/controls/ListBox.ec

index 5d73e7d..a226d1c 100644 (file)
@@ -3238,7 +3238,7 @@ private:
          // This must be done after the scrolling took place
          rowIndex = firstRowShown ? firstRowShown.index : -1;
          y = Max(y, 0);
-         y = Min(y, clientSize.h-rowHeight-1);
+         y = Min(y, clientSize.h - ((dragRow && style.moveRows) ? rowHeight : 0)-1);
          for(row = firstRowShown; row; row = nextRow, rowIndex ++)
          {
             nextRow = row.GetNextRow();