From fa665ff79856a6fa433cf8e152b097f7cabb64d4 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Fri, 29 Jan 2010 04:58:14 +0000 Subject: [PATCH] Resize the dialog if it doesn't fit in the zone. SVN revision: 45678 --- src/modules/illume2/policies/illume/layout.c | 2 ++ 1 file changed, 2 insertions(+) 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)