Better placement of 'dialog' types for portrait mode.
authorChristopher Michael <cpmichael1@comcast.net>
Tue, 15 Dec 2009 02:11:32 +0000 (02:11 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Tue, 15 Dec 2009 02:11:32 +0000 (02:11 +0000)
SVN revision: 44459

src/modules/illume2/e_mod_layout_illume.c

index 3ce9546..ff32778 100644 (file)
@@ -259,12 +259,13 @@ _zone_layout(E_Zone *z)
           }
         else if (illume_border_is_dialog(bd)) 
           {
-             int mh;
+             int mw, mh;
 
-             illume_border_min_get(bd, NULL, &mh);
+             illume_border_min_get(bd, &mw, &mh);
              if (mh > z->h) mh = z->h;
-             _border_resize_fx(bd, z->x, (z->y + ((z->h - mh) / 2)), 
-                               z->w, mh);
+             if (mw > z->w) mw = z->w;
+             _border_resize_fx(bd, (z->x + ((z->w - mw) / 2)), 
+                               (z->y + ((z->h - mh) / 2)), mw, mh);
              if (bd->layer != 120) e_border_layer_set(bd, 120);
           }
         else