mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
ui-canvas: the pasteboard's page names read upstream's least layout
This commit is contained in:
@@ -397,7 +397,7 @@ impl Component for Pasteboard<'_> {
|
||||
.map(|page| {
|
||||
let run = name_run(page.name.as_ref()?, name_color(cx.style, page.active)).elide();
|
||||
let width = bounds(&space.view.quad(page.rect)).width();
|
||||
(width >= cx.least_width(&run)).then(|| cx.layout_at(&run, width).size())
|
||||
(width >= cx.least(&run).width).then(|| cx.layout_at(&run, width).size())
|
||||
})
|
||||
.collect();
|
||||
for (at, page) in self.pages.iter().enumerate() {
|
||||
|
||||
Reference in New Issue
Block a user