summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-03-06 18:53:57 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-03-06 19:01:18 +0900
commit11aec4131832443f23a00b0b333a875bb23a13d2 (patch)
tree432077c383596732c69ff0da2fefbdb8dcf0fab1
parentf730248508ac8fbb0e44df15d9389e5a51afc3bc (diff)
fix ctxpopup getting min size from content immediately on set
this isn't needed and will get recaulcated later when box calcs min size and sets min size hint. cherrypick-me @fix
-rw-r--r--src/lib/elc_ctxpopup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 891fa490b..979f62235 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -808,12 +808,8 @@ _elm_ctxpopup_smart_content_set(Eo *obj, void *_pd, va_list *list)
808 evas_object_size_hint_fill_set 808 evas_object_size_hint_fill_set
809 (content, EVAS_HINT_FILL, EVAS_HINT_FILL); 809 (content, EVAS_HINT_FILL, EVAS_HINT_FILL);
810 810
811 /* since it's going to be a box content, not a layout's... */
812 evas_object_show(content);
813
814 evas_object_size_hint_min_get(content, &min_w, &min_h);
815 evas_object_size_hint_min_set(sd->box, min_w, min_h);
816 elm_box_pack_end(sd->box, content); 811 elm_box_pack_end(sd->box, content);
812 evas_object_show(content);
817 813
818 sd->content = content; 814 sd->content = content;
819 sd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN; 815 sd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;