File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -431,16 +431,23 @@ function findDimenstions(gd, menuOpts) {
431
431
if ( menuOpts . orientation === 'v' ) {
432
432
menuOpts . totalWidth = Math . max ( menuOpts . totalWidth , wEff ) ;
433
433
menuOpts . openWidth = menuOpts . totalWidth ;
434
- menuOpts . totalHeight += hEff ;
435
- menuOpts . openHeight += hEff ;
434
+ menuOpts . totalHeight += hEff + constants . gapButton ;
435
+ menuOpts . openHeight += hEff + constants . gapButton ;
436
436
} else {
437
- menuOpts . totalWidth += wEff ;
438
- menuOpts . openWidth += wEff ;
437
+ menuOpts . totalWidth += wEff + constants . gapButton ;
438
+ menuOpts . openWidth += wEff + constants . gapButton ;
439
439
menuOpts . totalHeight = Math . max ( menuOpts . totalHeight , hEff ) ;
440
440
menuOpts . openHeight = menuOpts . totalHeight ;
441
441
}
442
442
} ) ;
443
443
444
+ if ( menuOpts . orientation === 'v' ) {
445
+ menuOpts . totalHeight -= constants . gapButton ;
446
+ } else {
447
+ menuOpts . totalWidth -= constants . gapButton ;
448
+ }
449
+
450
+
444
451
menuOpts . headerWidth = menuOpts . width1 + constants . arrowPadX ;
445
452
menuOpts . headerHeight = menuOpts . height1 ;
446
453
You can’t perform that action at this time.
0 commit comments