Scrolling content is narrowed by the scrollbar width while the scrollbar is shown, so it no longer sits under the bar
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
91cdaf95cc
commit
a65132bb5a
3 files changed
+35
-5
No files matched your search
@@ -109,7 +109,7 @@ export class Menu extends Popup {
|
||||
const size = this.list.measure();
|
||||
const room = this.roomFor(this.scroll);
|
||||
const scrolls = size.h > room;
|
||||
this.scroll.minWidth = size.w + (scrolls ? Theme.scrollbarWidth + 4 : 0);
|
||||
this.scroll.minWidth = size.w + (scrolls ? Theme.scrollbarWidth : 0);
|
||||
this.scroll.minHeight = Math.min(size.h, room);
|
||||
this.scroll.scrollTo(0);
|
||||
this.refreshLayout();
|
||||
|
||||
Reference in new issue
Block a user