From 1c0ae4ffcb9eb1c6bb9e440d9d56ab8ff236a29c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 25 Jun 2012 08:22:16 +0000 Subject: [PATCH] shelf gadgets no longer tries to set min/max sizes that are larger than the shelf SVN revision: 72786 --- src/bin/e_gadcon.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/e_gadcon.c b/src/bin/e_gadcon.c index 07ba43634..555c8301d 100644 --- a/src/bin/e_gadcon.c +++ b/src/bin/e_gadcon.c @@ -1697,9 +1697,13 @@ _e_gadcon_client_free(E_Gadcon_Client *gcc) static void _e_gadcon_moveresize_handle(E_Gadcon_Client *gcc) { - Evas_Coord w, h; + int w, h, mw, mh; evas_object_geometry_get(gcc->o_box, NULL, NULL, &w, &h); + if (gcc->gadcon->edje.o_parent) + evas_object_geometry_get(gcc->gadcon->edje.o_parent, NULL, NULL, &mw, &mh); + else + mw = w, mh = h; /* if (gcc->resizable) { @@ -1748,7 +1752,7 @@ _e_gadcon_moveresize_handle(E_Gadcon_Client *gcc) 1, 1, /* expand */ 0.5, 0.5, /* align */ w, h, /* min */ - w, h /* max */ + mw, mh /* max */ ); }