File tree Expand file tree Collapse file tree
Datamine/Modules/Unified/Templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ function DatamineContextMenuMixin:OnLoad()
5454 self .MaxHeight = 500 ;
5555 self .MaxEntries = 20 ;
5656
57+ self .ScrollView = CreateScrollBoxListLinearView ();
58+
5759 local function Initializer (button , data )
5860 button :Init (data );
5961 end
@@ -63,7 +65,6 @@ function DatamineContextMenuMixin:OnLoad()
6365
6466 self .DataProvider = CreateDataProvider ();
6567
66- self .ScrollView = CreateScrollBoxListLinearView ();
6768 self .ScrollView :SetDataProvider (self .DataProvider );
6869 self .ScrollView :SetElementExtent (15 );
6970
Original file line number Diff line number Diff line change 122122DatamineSearchableListMixin = {};
123123
124124function DatamineSearchableListMixin :OnLoad_Base ()
125+ self .ScrollView = CreateScrollBoxListLinearView ();
126+
125127 local DEFAULT_EXTENT = 20 ;
126128 self .ScrollView :SetPanExtent (DEFAULT_EXTENT );
127129 self .ScrollView :SetElementExtent (DEFAULT_EXTENT );
@@ -135,7 +137,7 @@ function DatamineSearchableListMixin:OnLoad_Base()
135137
136138 self .DataProvider = CreateDataProvider ();
137139
138- self . ScrollView = CreateScrollBoxListLinearView ();
140+
139141 self .ScrollView :SetDataProvider (self .DataProvider );
140142
141143 ScrollUtil .InitScrollBoxListWithScrollBar (self .ScrollBox , self .ScrollBar , self .ScrollView );
Original file line number Diff line number Diff line change 8484DatamineTabTreeViewMixin = {};
8585
8686function DatamineTabTreeViewMixin :OnLoad_Base ()
87+ self .ScrollView = CreateScrollBoxListTreeListView ();
88+
8789 local TOP_LEVEL_EXTENT = 20 ;
8890 local DEFAULT_EXTENT = 20 ;
8991 self .ScrollView :SetElementExtentCalculator (function (_ , elementData )
@@ -112,7 +114,6 @@ function DatamineTabTreeViewMixin:OnLoad_Base()
112114
113115 self .DataProvider = CreateTreeDataProvider ();
114116
115- self .ScrollView = CreateScrollBoxListTreeListView ();
116117 self .ScrollView :SetDataProvider (self .DataProvider );
117118 self .ScrollView :SetPanExtent (20 );
118119
You can’t perform that action at this time.
0 commit comments