mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +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) {
|
static void set_xywh(MwWidget handle) {
|
||||||
int height = 0;
|
int height = 0;
|
||||||
|
int diff = MwDefaultBorderWidth(handle);
|
||||||
|
diff = 0;
|
||||||
|
|
||||||
height = MwTextHeight(handle, "M") + 10;
|
height = MwTextHeight(handle, "M") + 10;
|
||||||
|
|
||||||
MwVaApply(handle,
|
MwVaApply(handle,
|
||||||
MwNx, -MwDefaultBorderWidth(handle),
|
MwNx, -diff,
|
||||||
MwNy, -MwDefaultBorderWidth(handle),
|
MwNy, -diff,
|
||||||
MwNwidth, MwGetInteger(handle->parent, MwNwidth) + MwDefaultBorderWidth(handle) * 2,
|
MwNwidth, MwGetInteger(handle->parent, MwNwidth) + diff * 2,
|
||||||
MwNheight, height + MwDefaultBorderWidth(handle),
|
MwNheight, height + diff,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user