Better placement of 'dialog' types for portrait mode.

SVN revision: 44459
This commit is contained in:
Christopher Michael 2009-12-15 02:11:32 +00:00
parent 652069d580
commit 6488b1d7d7
1 changed files with 5 additions and 4 deletions

View File

@ -259,12 +259,13 @@ _zone_layout(E_Zone *z)
} }
else if (illume_border_is_dialog(bd)) else if (illume_border_is_dialog(bd))
{ {
int mh; int mw, mh;
illume_border_min_get(bd, NULL, &mh); illume_border_min_get(bd, &mw, &mh);
if (mh > z->h) mh = z->h; if (mh > z->h) mh = z->h;
_border_resize_fx(bd, z->x, (z->y + ((z->h - mh) / 2)), if (mw > z->w) mw = z->w;
z->w, mh); _border_resize_fx(bd, (z->x + ((z->w - mw) / 2)),
(z->y + ((z->h - mh) / 2)), mw, mh);
if (bd->layer != 120) e_border_layer_set(bd, 120); if (bd->layer != 120) e_border_layer_set(bd, 120);
} }
else else