File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,26 @@ export class CheckableContinuousFlyout extends ContinuousFlyout {
104
104
this . checkboxes_ . clear ( ) ;
105
105
}
106
106
107
+ layout_ ( contents , gaps ) {
108
+ super . layout_ ( contents , gaps ) ;
109
+ // We want large gaps between categories (see GAP_Y), but don't want those
110
+ // counted as part of the category for purposes of scrolling to show the
111
+ // category, so we reset/adjust the label gaps used for the scroll position
112
+ // calculation here.
113
+ this . labelGaps . fill (
114
+ this . getWorkspace ( ) . getRenderer ( ) . getConstants ( ) . GRID_UNIT
115
+ ) ;
116
+ }
117
+
118
+ calculateBottomPadding ( contentMetrics , viewMetrics ) {
119
+ // Since we're messing with the alignment by munging the label gaps, we also
120
+ // need to adjust the bottom padding.
121
+ return (
122
+ super . calculateBottomPadding ( contentMetrics , viewMetrics ) -
123
+ this . getWorkspace ( ) . getRenderer ( ) . getConstants ( ) . GRID_UNIT * 4
124
+ ) ;
125
+ }
126
+
107
127
addBlockListeners_ ( root , block , rect ) {
108
128
if ( block . checkboxInFlyout ) {
109
129
const coordinates = block . getRelativeToSurfaceXY ( ) ;
You can’t perform that action at this time.
0 commit comments