elm_panes : modified to keep panes content left size after orientation changed 32/79032/2
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Fri, 8 Jul 2016 01:04:23 +0000 (10:04 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 8 Jul 2016 04:54:15 +0000 (21:54 -0700)
Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
Change-Id: Iae00eedc5149050d3cff3e9cf0408cb5309a535a

src/lib/elm_panes.c

index 83e1d8de8659b24fe7891993b6146d167e4a133c..a40e02979cb85262eff526188992897f219c2fdd 100644 (file)
@@ -420,11 +420,13 @@ _elm_panes_content_right_size_set(Eo *obj, Elm_Panes_Data *_pd EINA_UNUSED, doub
 EOLIAN static void
 _elm_panes_horizontal_set(Eo *obj, Elm_Panes_Data *sd, Eina_Bool horizontal)
 {
+   double size = elm_panes_content_left_size_get(obj);
+
    sd->horizontal = horizontal;
    eo_do(obj, elm_obj_widget_theme_apply());
    _update_fixed_sides(obj);
 
-   elm_panes_content_left_size_set(obj, 0.5);
+   elm_panes_content_left_size_set(obj, size);
 }
 
 EOLIAN static Eina_Bool