forked from 1b-agent/opencadstudio-upstream
feat(ribbon): the layer combo shows typical layer names in full
The closed combo is at least 250 px wide (about 25 characters of name) and its dropdown 300 px. Fixes #1648 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
da2704bb45
commit
6256ad3bd5
2 files changed
+5
-3
No files matched your search
@@ -1129,9 +1129,9 @@ impl Ribbon {
|
||||
.spacing(2),
|
||||
)
|
||||
.style(popup_panel_style)
|
||||
.width(Length::Fixed(220.0));
|
||||
.width(Length::Fixed(300.0));
|
||||
|
||||
let (align_right, h_pad, top) = self.dd_anchor(LAYER_COMBO_ID, 220.0, win.0);
|
||||
let (align_right, h_pad, top) = self.dd_anchor(LAYER_COMBO_ID, 300.0, win.0);
|
||||
let positioned = position_ribbon_dropdown(panel.into(), align_right, h_pad, top);
|
||||
|
||||
Some(dropdown_backdrop(positioned))
|
||||
|
||||
Reference in new issue
Block a user