Skip to content

Commit 2e9f012

Browse files
committed
Fixes microsoft#3984: repaint rulers when scroll height changes
1 parent 9c808f7 commit 2e9f012

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • src/vs/editor/browser/viewParts/rulers

src/vs/editor/browser/viewParts/rulers/rulers.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import 'vs/css!./rulers';
99
import {StyleMutator} from 'vs/base/browser/styleMutator';
10-
import {IConfigurationChangedEvent} from 'vs/editor/common/editorCommon';
10+
import * as editorCommon from 'vs/editor/common/editorCommon';
1111
import {ILayoutProvider, IRenderingContext, IViewContext} from 'vs/editor/browser/editorBrowser';
1212
import {ViewPart} from 'vs/editor/browser/view/viewPart';
1313

@@ -35,7 +35,7 @@ export class Rulers extends ViewPart {
3535

3636
// --- begin event handlers
3737

38-
public onConfigurationChanged(e: IConfigurationChangedEvent): boolean {
38+
public onConfigurationChanged(e: editorCommon.IConfigurationChangedEvent): boolean {
3939
if (e.rulers || e.layoutInfo || e.typicalHalfwidthCharacterWidth) {
4040
this._rulers = this._context.configuration.editor.rulers;
4141
this._height = this._context.configuration.editor.layoutInfo.contentHeight;
@@ -44,6 +44,9 @@ export class Rulers extends ViewPart {
4444
}
4545
return false;
4646
}
47+
public onScrollHeightChanged(scrollHeight:number): boolean {
48+
return true;
49+
}
4750

4851
// --- end event handlers
4952

0 commit comments

Comments
 (0)