Skip to content

Commit 4635502

Browse files
devvaannshabose
authored andcommitted
fix: scrollbar appearing in tab context menu
1 parent ebcd3be commit 4635502

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/extensionsIntegrated/TabBar/more-options.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,13 @@ define(function (require, exports, module) {
282282
zIndex: 1000
283283
});
284284

285+
// Add a custom class to override the max-height, not sure why a scroll bar was coming but this did the trick
286+
dropdown.dropdownExtraClasses = "tabbar-context-menu";
287+
285288
dropdown.showDropdown();
286289

290+
$(".tabbar-context-menu").css("max-height", "200px");
291+
287292
// handle the option selection
288293
dropdown.on("select", function (e, item) {
289294
_handleSelection(item, filePath, paneId);

0 commit comments

Comments
 (0)