mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
better
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@780 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user