Integration: the Paragraph section's menu (#263) uses #281's menu_button

#263 adds a ☰ menu to the Properties panel's Paragraph section; #281 routes every menu through menus::menu_button so a menu taller than the window scrolls and a scroll-bar click keeps it open. This one gets the same behaviour.
This commit is contained in:
aiongg
2026-10-10 03:58:53 +00:00
parent 7108d3e77d
commit aee4de738f
+1 -1
View File
@@ -1443,7 +1443,7 @@ pub fn paragraph_panel(app: &mut DesignApp, ui: &mut egui::Ui) {
ui.horizontal(|ui| {
crate::rtl::label(ui, egui::RichText::new(crate::i18n::tr(&app.ui.language, "Paragraph")).strong());
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
ui.menu_button("☰", |ui| {
crate::menus::menu_button(ui, "☰", |ui| {
if ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Paragraph Rules…"))).clicked() {
let _ = app.run("app.paragraphRulesDialog", json!({}));
ui.close();