rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=81da5edfc28d4717e46f60eeb45ad5c55e1407d5

commit 81da5edfc28d4717e46f60eeb45ad5c55e1407d5
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Thu Mar 31 12:07:10 2016 +0300

    workpsace: implement the workspace_container_fill
    
    Change-Id: If99e7057e615627ff2da3b69b9e7d6862f337c74
---
 src/bin/ui/workspace/workspace.c | 18 ++++++++++++++++++
 src/bin/ui/workspace/workspace.h |  3 +++
 2 files changed, 21 insertions(+)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index de8eebe..0801243 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -1213,6 +1213,24 @@ workspace_zoom_factor_get(Evas_Object *obj)
 }
 
 void
+workspace_container_fill(Evas_Object *obj)
+{
+   Evas_Coord w, h;
+   int r, t, l, b;
+   Scroll_Area *area;
+
+   WS_DATA_GET(obj);
+
+   area = _scroll_area_get(wd);
+   /* get the bg size, because bg size not included the scrollbar size */
+   evas_object_geometry_get(area->bg, NULL, NULL, &w, &h);
+   container_padding_size_get(area->container, &r, &t, &l, &b);
+   w = (w - l - r) / wd->zoom_factor;
+   h = (h - t - b) / wd->zoom_factor;
+   container_container_size_set(area->container, w, h);
+}
+
+void
 workspace_state_next_request(Evas_Object *obj)
 {
    WS_DATA_GET(obj);
diff --git a/src/bin/ui/workspace/workspace.h b/src/bin/ui/workspace/workspace.h
index f8f817d..45229dd 100644
--- a/src/bin/ui/workspace/workspace.h
+++ b/src/bin/ui/workspace/workspace.h
@@ -251,6 +251,9 @@ workspace_zoom_factor_set(Evas_Object *obj, double factor);
 double
 workspace_zoom_factor_get(Evas_Object *obj);
 
+void
+workspace_container_fill(Evas_Object *obj);
+
 /**
  * Switch beetwen show or hide mode of legend in workspace object.
  *

-- 


Reply via email to