Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit eb1bd03

Browse files
Merge pull request #2021 from trevordevore/tkd-dg-fixes
Fix DataGrid cached control error
2 parents 1896266 + b0cf1a4 commit eb1bd03

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Toolset/palettes/revdatagridlibrary/behaviorsdatagridbuttonbehavior.livecodescript

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3233,6 +3233,10 @@ private command _list.DrawCachedControlList pForceRefresh, pCallback, pCallbackC
32333233
local theSequence
32343234
local theTopLeft
32353235
-----
3236+
3237+
# If controls haven't been cached yet then exit
3238+
if sControlOfIndexA is not an array then return empty
3239+
32363240
put false into noRedrawNeeded
32373241
put empty into theFirstControlHeight
32383242

@@ -5431,7 +5435,7 @@ end uProps
54315435
getprop uProps[pProp]
54325436
if the target is not me then pass uProps
54335437
return the dgProps[pProp] of me
5434-
end uProps[pProp]
5438+
end uProps
54355439
## end temporary aliases
54365440

54375441

@@ -6927,7 +6931,7 @@ getprop dgDataControlOfIndex [pIndex]
69276931
end if
69286932
end if
69296933
return empty
6930-
end dgDataControlOfIndex[pIndex]
6934+
end dgDataControlOfIndex
69316935

69326936

69336937
function ColumnControlOfIndex pColumn, pIndex

notes/bugfix-11295.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix error in DataGrid when form controls are cached, fixed line height is true, and showing the vertical scrollbar is set to auto.

0 commit comments

Comments
 (0)