Fix for T2042 ctxpopup don’t know its size
authorChunEon Park <hermet@hermet.pe.kr>
Tue, 3 Mar 2015 02:50:22 +0000 (11:50 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 9 Mar 2015 00:57:42 +0000 (09:57 +0900)
Summary:
Since this patch ctxpopup is able to report its size which is equal to 1 element of list.
This can be treated as another bug (list visibility implementation must be so list will be counting its size dynamic on every item add)
Might be also ignored.

Test Plan:
1. Use application provided in T2042 (should have coordinates greater then 0).
2. Using atspi check is accessible element is visible. (with patch ctxpopup will be visible, without ctxpopup and its children will have status visible and showing set to FALSE)

Reviewers: raster, seoz, Hermet

Subscribers: m.jagiello

Projects: #elementary

Maniphest Tasks: T2042

Differential Revision: https://phab.enlightenment.org/D2045

legacy/elementary/src/lib/elc_ctxpopup.c

index 543351c..ce73a10 100644 (file)
@@ -670,6 +670,8 @@ _elm_ctxpopup_elm_layout_sizing_eval(Eo *obj, Elm_Ctxpopup_Data *sd)
    evas_object_move(wd->resize_obj, rect.x, rect.y);
    evas_object_resize(wd->resize_obj, rect.w, rect.h);
 
+   evas_object_resize(obj, rect.w, rect.h);
+
    _show_signals_emit(obj, sd->dir);
 }