From a23016bc051ea056589add8a6efb96172fcff21a Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 23 Dec 2025 18:14:00 +0900 Subject: [PATCH] yes --- src/widget/submenu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widget/submenu.c b/src/widget/submenu.c index 7c23c81..463d207 100644 --- a/src/widget/submenu.c +++ b/src/widget/submenu.c @@ -126,7 +126,7 @@ static void click(MwWidget handle) { menu->sub[j]->wsub = NULL; } - p.x = rc.x + rc.width + 3; + p.x = MwGetInteger(handle, MwNwidth); p.y = rc.y - 3; menu->sub[i]->wsub = MwCreateWidget(MwSubMenuClass, "submenu", handle, 0, 0, 0, 0); @@ -183,6 +183,8 @@ static void mwSubMenuAppearImpl(MwWidget handle, MwMenu menu, MwPoint* point, in w += 10 + 15; h += 3; + if(w < 150) w = 150; + if(diff_calc) { p.y = p.y - h; }