Skip to content

Commit

Permalink
Fix #27515.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jun 1, 2017
1 parent 07bbca9 commit 0346c02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vs/editor/contrib/find/browser/findWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,17 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
});
}));


this._register(this._codeEditor.onDidScrollChange((e) => {
if (e.scrollTopChanged) {
this._layoutViewZone();
return;
}

// for other scroll changes, layout the viewzone in next tick to avoid ruining current rendering.
setTimeout(() => {
this._layoutViewZone();
}, 0);
}));
}

Expand Down

0 comments on commit 0346c02

Please sign in to comment.