rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=3e28ea25950fa1ef6463949f27cabf88aa2c0950

commit 3e28ea25950fa1ef6463949f27cabf88aa2c0950
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Fri Mar 25 10:41:02 2016 +0200

    workspace: change the rel scale accordingly to zoom
    
    Change-Id: I904357c5a8ab6b2063064bf37f88b589199cc69e
---
 src/bin/ui/workspace/workspace.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index 605ae8a..0aa4f74 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -507,12 +507,12 @@ _container_changed(void *data,
    if (area->ruler_h.scale_rel)
      {
         ewe_ruler_zero_offset_set(area->ruler_h.obj, area->ruler_h.scale_rel, 
geom->x - x);
-        ewe_ruler_step_set(area->ruler_h.obj, area->ruler_h.scale_rel, 
(geom->w / 2));
+        ewe_ruler_step_set(area->ruler_h.obj, area->ruler_h.scale_rel, 
((geom->w * wd->zoom_factor) / 2));
      }
    if (area->ruler_v.scale_rel)
      {
         ewe_ruler_zero_offset_set(area->ruler_v.obj, area->ruler_v.scale_rel, 
geom->y - y);
-        ewe_ruler_step_set(area->ruler_v.obj, area->ruler_v.scale_rel, 
(geom->h / 2));
+        ewe_ruler_step_set(area->ruler_v.obj, area->ruler_v.scale_rel, 
((geom->h * wd->zoom_factor) / 2));
      }
 
    elm_spinner_value_set(wd->toolbar.container_sizer.spinner_w, area->w);

-- 


Reply via email to