This reverts commit 82a7aca5a6
.
Release Notes:
- N/A
This commit is contained in:
parent
907b2f0521
commit
f0f0a52793
4 changed files with 203 additions and 125 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue