File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
editor/contrib/hover/browser Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9
9
overflow : hidden;
10
10
user-select : text;
11
11
-webkit-user-select : text;
12
- box-sizing : initial ;
12
+ box-sizing : border-box; ;
13
13
animation: fadein 100ms linear;
14
14
line-height: 1.5em;
15
15
}
Original file line number Diff line number Diff line change @@ -444,6 +444,7 @@ class ContentHoverVisibleData {
444
444
445
445
const HORIZONTAL_SCROLLING_BY = 30 ;
446
446
const SCROLLBAR_WIDTH = 10 ;
447
+ const CONTAINER_HEIGHT_PADDING = 6 ;
447
448
448
449
export class ContentHoverWidget extends ResizableContentWidget {
449
450
@@ -573,6 +574,7 @@ export class ContentHoverWidget extends ResizableContentWidget {
573
574
override _resize ( size : dom . Dimension ) {
574
575
this . _setAdjustedHoverWidgetDimensions ( size ) ;
575
576
this . _setResizableNodeMaxDimensions ( ) ;
577
+ this . _resizableNode . layout ( size . height , size . width ) ;
576
578
this . _hover . scrollbar . scanDomNode ( ) ;
577
579
this . _editor . layoutContentWidget ( this ) ;
578
580
}
@@ -590,7 +592,7 @@ export class ContentHoverWidget extends ResizableContentWidget {
590
592
if ( ! availableSpace ) {
591
593
return ;
592
594
}
593
- let maximumHeight = 0 ;
595
+ let maximumHeight = CONTAINER_HEIGHT_PADDING ;
594
596
Array . from ( this . _hover . contentsDomNode . children ) . forEach ( ( hoverPart ) => {
595
597
maximumHeight += hoverPart . clientHeight ;
596
598
} ) ;
You can’t perform that action at this time.
0 commit comments