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

Commit ba8f2bc

Browse files
Merge pull request #2028 from livecode/bugfix-12400
[12400] Ensure DG contents are refreshed when changing the DG style
2 parents 0ba598a + f184f78 commit ba8f2bc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Toolset/palettes/revdatagridlibrary/behaviorsdatagridbuttonbehavior.livecodescript

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5759,7 +5759,7 @@ setprop dgProps [pProp] pValue
57595759
show group "dgHorizontalComponents" of me
57605760
_table.RegenerateColumns
57615761
-- set the uEffectiveColumnWidths of group "dgHeader" of group "dgHeaderMask" of group "dgHeaderComponents" of me \
5762-
-- to _table.GetEffectiveColumnWidths()
5762+
-- to _table.GetEffectiveColumnWidths()
57635763

57645764
## Set any props that have special settings for table.
57655765
lock messages
@@ -5780,6 +5780,7 @@ setprop dgProps [pProp] pValue
57805780
unlock messages
57815781

57825782
ResizeToFit
5783+
ResetList
57835784
unlock screen
57845785
break
57855786

@@ -5800,7 +5801,7 @@ setprop dgProps [pProp] pValue
58005801
unlock messages
58015802
put empty into sFormattedHeight
58025803
put empty into sControlHeights
5803-
5804+
58045805
DG2_EnsureRowChainedBehavior
58055806
end if
58065807
break
@@ -5841,7 +5842,7 @@ setprop dgProps [pProp] pValue
58415842
case "scroll when vscrollbar is hidden"
58425843
case "scroll when hscrollbar is hidden"
58435844
case "scroll selections into view"
5844-
5845+
58455846
case "animate actions"
58465847
case "enable swipe"
58475848
lock messages
@@ -5863,13 +5864,13 @@ setprop dgProps [pProp] pValue
58635864
lock messages
58645865
set the dgProps[pProp] of me to pValue
58655866
unlock messages
5866-
5867+
58675868
-- We're setting new template controls. Redraw the list to take these new controls into account.
58685869
DG2_CustomisableControlsClearByName pProp
58695870
RefreshList
58705871
end if
58715872
break
5872-
5873+
58735874
case "alternate row colors"
58745875
lock messages
58755876
set the dgProps[pProp] of me to pValue is true
@@ -6017,7 +6018,7 @@ setprop dgProps [pProp] pValue
60176018
-- Update any customisable controls to take into account the row resize.
60186019
DG2_CustomisableControlsResizeDefaults
60196020
DG2_CustomisableControlsClear
6020-
6021+
60216022
ResetList
60226023
unlock screen
60236024
end if

notes/bugfix-12400.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure Datagrid refreshes when switching its style from table to form and back to table

0 commit comments

Comments
 (0)