提交 a6fa6280 编写于 作者: B Benjamin Pasero

tabs wrap - allow for up to 1px overlap of last tab to action toolbar before...

tabs wrap - allow for up to 1px overlap of last tab to action toolbar before disabling wrapping tabs (fix #116385)
上级 f9ed8037
......@@ -1415,7 +1415,14 @@ export class TabsTitleControl extends TitleControl {
return true; // no tab always fits
}
return lastTab.offsetWidth <= (dimensions.available.width - editorToolbarContainer.offsetWidth);
const lastTabOverlapWithToolbarWidth = lastTab.offsetWidth + editorToolbarContainer.offsetWidth - dimensions.available.width;
if (lastTabOverlapWithToolbarWidth > 1) {
// Allow for slight rounding errors related to zooming here
// https://github.com/microsoft/vscode/issues/116385
return false;
}
return true;
};
// If tabs wrap or should start to wrap (when width exceeds visible width)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册