File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
[editor]/editor_gui/client/browser Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
browserList = {}
2
2
browserList_mt = { __index = browserList }
3
3
local activatedBrowsers = {}
4
- local ROW_HEIGHT = 14
4
+ local ROW_HEIGHT = 14.1
5
5
local keyUp ,keyDown ,ignore
6
6
-- NOTE: All functions lack necessary checks to verify valid args, its intended for internal use only
7
7
---- ---
@@ -59,7 +59,7 @@ local function updateActivatedBrowsers()
59
59
local targetKey = startKey + self .gridlistRowCount - 1
60
60
-- set the text
61
61
local i = startKey
62
- while i ~ = targetKey do
62
+ while i < = targetKey do
63
63
rowColumns = self .rowList [i ]
64
64
if type (rowColumns ) == " table" then
65
65
local pos = guiGridListAddRow ( self .gridlist )
@@ -192,7 +192,7 @@ function browserList:setRows(rowTable)
192
192
self .currentStartKey = 1
193
193
self .rowCount = # rowTable -- total number of rows
194
194
self .rowList = rowTable
195
- self .scrollDistance = self .rowCount - self .gridlistRowCount
195
+ self .scrollDistance = self .rowCount - self .gridlistRowCount + 1
196
196
if self .scrollDistance == 0 then
197
197
self .scrollDistance = 1
198
198
end
@@ -220,7 +220,7 @@ function browserList:setRows(rowTable)
220
220
end
221
221
local i = 1
222
222
local target = self .gridlistRowCount + 2
223
- while i ~ = target do
223
+ while i < = target do
224
224
local rowColumns = rowTable [i ]
225
225
if type (rowColumns ) == " table" then
226
226
local pos = guiGridListAddRow ( self .gridlist )
You can’t perform that action at this time.
0 commit comments