Resize the dialog if it doesn't fit in the zone.

SVN revision: 45678
This commit is contained in:
Christopher Michael 2010-01-29 04:58:14 +00:00
parent 743ae4d5bc
commit fa665ff798
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ _layout_zone_layout(E_Zone *zone)
if (mh > zone->h) mh = zone->h;
nx = (zone->x + ((zone->w - mw) / 2));
ny = (zone->y + ((zone->h - mh) / 2));
if ((bd->w != mw) || (bd->h != mh))
_zone_layout_border_resize(bd, mw, mh);
if ((bd->x != nx) || (bd->y != ny))
_zone_layout_border_move(bd, nx, ny);
if (bd->layer != IL_DIALOG_LAYER)