From 95c8fb64cb7070cc1022f72653aeb9f8350dafe6 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 22 Nov 2025 15:44:01 +0000 Subject: [PATCH] better git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@780 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/widget/menu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/widget/menu.c b/src/widget/menu.c index 2af190f..9314b43 100644 --- a/src/widget/menu.c +++ b/src/widget/menu.c @@ -6,14 +6,16 @@ static void set_xywh(MwWidget handle) { int height = 0; + int diff = MwDefaultBorderWidth(handle); + diff = 0; height = MwTextHeight(handle, "M") + 10; MwVaApply(handle, - MwNx, -MwDefaultBorderWidth(handle), - MwNy, -MwDefaultBorderWidth(handle), - MwNwidth, MwGetInteger(handle->parent, MwNwidth) + MwDefaultBorderWidth(handle) * 2, - MwNheight, height + MwDefaultBorderWidth(handle), + MwNx, -diff, + MwNy, -diff, + MwNwidth, MwGetInteger(handle->parent, MwNwidth) + diff * 2, + MwNheight, height + diff, NULL); }