also ensure min size for shelf gadgets is not greater than max size
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 25 Jun 2012 08:25:07 +0000 (08:25 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 25 Jun 2012 08:25:07 +0000 (08:25 +0000)
SVN revision: 72787

src/bin/e_gadcon.c

index 555c830..be63260 100644 (file)
@@ -1704,6 +1704,8 @@ _e_gadcon_moveresize_handle(E_Gadcon_Client *gcc)
      evas_object_geometry_get(gcc->gadcon->edje.o_parent, NULL, NULL, &mw, &mh);
    else
      mw = w, mh = h;
+   w = MIN(w, mw);
+   h = MIN(h, mh);
 /*
    if (gcc->resizable)
      {