aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/illume2/policies/illume/layout.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2010-01-29 04:58:14 +0000
committerChristopher Michael <cpmichael1@comcast.net>2010-01-29 04:58:14 +0000
commitfa665ff79856a6fa433cf8e152b097f7cabb64d4 (patch)
tree5ab24009b78b9db8f95b55cedf1bb966420718e1 /src/modules/illume2/policies/illume/layout.c
parent743ae4d5bc6980d81219b3dcc9239502dd6ef5ec (diff)
downloadenlightenment-fa665ff79856a6fa433cf8e152b097f7cabb64d4.tar.gz
enlightenment-fa665ff79856a6fa433cf8e152b097f7cabb64d4.tar.xz
enlightenment-fa665ff79856a6fa433cf8e152b097f7cabb64d4.zip
Resize the dialog if it doesn't fit in the zone.
SVN revision: 45678
Diffstat (limited to 'src/modules/illume2/policies/illume/layout.c')
-rw-r--r--src/modules/illume2/policies/illume/layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/illume2/policies/illume/layout.c b/src/modules/illume2/policies/illume/layout.c
index ed6c6c008..5112f828d 100644
--- a/src/modules/illume2/policies/illume/layout.c
+++ b/src/modules/illume2/policies/illume/layout.c
@@ -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)