提交 017c87e8 编写于 作者: J Johannes Rieken

fix breakcrumb scrolling issue

上级 cf43ca6a
......@@ -119,7 +119,7 @@ export class BreadcrumbsWidget {
}
layout(dim: dom.Dimension | undefined): void {
if (dom.Dimension.equals(dim, this._dimension)) {
if (dim && dom.Dimension.equals(dim, this._dimension)) {
return;
}
if (this._pendingLayout) {
......@@ -146,9 +146,11 @@ export class BreadcrumbsWidget {
private _updateScrollbar(): IDisposable {
return dom.measure(() => {
this._scrollable.setRevealOnScroll(false);
this._scrollable.scanDomNode();
this._scrollable.setRevealOnScroll(true);
dom.measure(() => { // double RAF
this._scrollable.setRevealOnScroll(false);
this._scrollable.scanDomNode();
this._scrollable.setRevealOnScroll(true);
});
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册