better
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@780 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
7d81e59c7d
commit
95c8fb64cb
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue