File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ export declare class BodyCtrl {
1212 onMouseMove ( e : MouseEvent ) ;
1313 onMouseLeave ( e : MouseEvent ) ;
1414 onMouseUp ( e : MouseEvent ) ;
15+ resize ( ) : void ;
1516}
Original file line number Diff line number Diff line change @@ -226,6 +226,10 @@ export class BodyCtrl {
226226 }
227227 }
228228
229+ resize ( ) {
230+ this . scrollService . resize ( ) ;
231+ }
232+
229233 get selection ( ) {
230234 return this . model . selection ( ) ;
231235 }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export class BodyCoreComponent extends NgComponent implements OnInit {
5858
5959 listener . on ( 'mousedown' , ctrl . onMouseDown . bind ( ctrl ) ) ;
6060
61- windowListener . on ( 'resize' , ( ) => ctrl . scrollService . resize ( ) ) ;
61+ windowListener . on ( 'resize' , ( ) => ctrl . resize ( ) ) ;
6262 windowListener . on ( 'mouseup' , ( e ) => {
6363 const isActive = model . focus ( ) . isActive ;
6464 if ( isActive ) {
You can’t perform that action at this time.
0 commit comments