Resize the dialog if it doesn't fit in the zone.
authorChristopher Michael <cpmichael1@comcast.net>
Fri, 29 Jan 2010 04:58:14 +0000 (04:58 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Fri, 29 Jan 2010 04:58:14 +0000 (04:58 +0000)
SVN revision: 45678

src/modules/illume2/policies/illume/layout.c

index ed6c6c008039a06501549ffa60040ea6c609287c..5112f828df32ef0d2d12acd818e59134328279db 100644 (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)