git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@780 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-22 15:44:01 +00:00
parent 7d81e59c7d
commit 95c8fb64cb

View File

@@ -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);
}