Revert "ui: Account for padding of parent container during scrollbar layout (#27402)" (#30544)

This reverts commit 82a7aca5a6.

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-05-12 11:47:04 +02:00 committed by GitHub
parent 907b2f0521
commit f0f0a52793
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 203 additions and 125 deletions

View file

@ -2671,7 +2671,11 @@ impl Pane {
}
})
.children(pinned_tabs.len().ne(&0).then(|| {
let content_width = self.tab_bar_scroll_handle.content_size().width;
let content_width = self
.tab_bar_scroll_handle
.content_size()
.map(|content_size| content_size.size.width)
.unwrap_or(px(0.));
let viewport_width = self.tab_bar_scroll_handle.viewport().size.width;
// We need to check both because offset returns delta values even when the scroll handle is not scrollable
let is_scrollable = content_width > viewport_width;