forked from enlightenment/enlightenment
Resize the dialog if it doesn't fit in the zone.
SVN revision: 45678
This commit is contained in:
parent
743ae4d5bc
commit
fa665ff798
|
@ -188,6 +188,8 @@ _layout_zone_layout(E_Zone *zone)
|
||||||
if (mh > zone->h) mh = zone->h;
|
if (mh > zone->h) mh = zone->h;
|
||||||
nx = (zone->x + ((zone->w - mw) / 2));
|
nx = (zone->x + ((zone->w - mw) / 2));
|
||||||
ny = (zone->y + ((zone->h - mh) / 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))
|
if ((bd->x != nx) || (bd->y != ny))
|
||||||
_zone_layout_border_move(bd, nx, ny);
|
_zone_layout_border_move(bd, nx, ny);
|
||||||
if (bd->layer != IL_DIALOG_LAYER)
|
if (bd->layer != IL_DIALOG_LAYER)
|
||||||
|
|
Loading…
Reference in New Issue