elm_panes : modified to keep panes content left size after orientation changed
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Fri, 8 Jul 2016 00:49:50 +0000 (09:49 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Fri, 8 Jul 2016 00:49:51 +0000 (09:49 +0900)
Reviewers: woohyun

Subscribers: cedric, jpeg

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

src/lib/elementary/elm_panes.c

index a54d646..6fcaab0 100644 (file)
@@ -425,11 +425,13 @@ _elm_panes_efl_orientation_orientation_set(Eo *obj, Elm_Panes_Data *sd, Efl_Orie
    if ((dir != EFL_ORIENT_HORIZONTAL) && (dir != EFL_ORIENT_VERTICAL))
      return;
 
+   double size = elm_panes_content_left_size_get(obj);
+
    sd->orientation = dir;
    elm_obj_widget_theme_apply(obj);
    _update_fixed_sides(obj);
 
-   elm_panes_content_left_size_set(obj, 0.5);
+   elm_panes_content_left_size_set(obj, size);
 }
 
 EOLIAN static Efl_Orient