File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -190,12 +190,16 @@ protected function _renderTableSettings() {
190
190
191
191
echo '<div class="viz-section-delimiter section-delimiter"></div> ' ;
192
192
193
- self ::_renderCheckboxItem (
194
- esc_html__ ( 'Scroll Collapse ' , 'visualizer ' ),
195
- 'scrollCollapse_bool ' ,
196
- $ this ->scrollCollapse_bool ,
197
- 'true ' ,
198
- esc_html__ ( 'Allow the table to reduce in height when a limited number of rows are shown ' , 'visualizer ' )
193
+ self ::_renderTextItem (
194
+ esc_html__ ( 'Table Height ' , 'visualizer ' ),
195
+ 'scrollY_int ' ,
196
+ isset ( $ this ->scrollY_int ) ? $ this ->scrollY_int : '' ,
197
+ esc_html__ ( 'Height of the table in pixels (the table will show a scrollbar). ' , 'visualizer ' ),
198
+ '' ,
199
+ 'number ' ,
200
+ array (
201
+ 'min ' => 0 ,
202
+ )
199
203
);
200
204
201
205
echo '<div class="viz-section-delimiter section-delimiter"></div> ' ;
Original file line number Diff line number Diff line change 52
52
switch ( v . page_type ) {
53
53
case 'post' :
54
54
case 'library' :
55
+ // remove scrollY if its greater than what will fit in the box (along with the legend).
56
+ if ( parseInt ( chart . settings [ 'scrollY_int' ] ) > 180 ) {
57
+ chart . settings [ 'scrollY_int' ] ;
58
+ }
55
59
$ . extend ( settings , {
56
60
scrollX : 150 ,
57
61
scrollY : 180 ,
58
- scrollCollapse : true
59
62
} ) ;
60
63
break ;
61
64
case 'frontend' :
You can’t perform that action at this time.
0 commit comments