elementary : Fixed progressbar clipping issue 09/43109/1
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Fri, 22 May 2015 08:14:00 +0000 (17:14 +0900)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 8 Jul 2015 01:18:46 +0000 (10:18 +0900)
Change-Id: I69a88e59873c16495d1c0001701e60eac533e8d1

src/lib/tizen_vector.c

index 2378663..7ab55d3 100644 (file)
@@ -1574,21 +1574,17 @@ tizen_vg_progressbar_set(Elm_Progressbar *obj)
        !strcmp(str, "process_medium") ||
        !strcmp(str, "process_small"))
      {
-        vd->stroke_width = 3;
-        vd->shrink = 6;
-        vd->shift = 3;
+        vd->stroke_width = ELM_SCALE_SIZE(3);
         if (!strcmp(str, "process_medium"))
           {
-             vd->stroke_width = 2;
-             vd->shrink = 4;
-             vd->shift = 2;
+             vd->stroke_width = ELM_SCALE_SIZE(2);
           }
         if (!strcmp(str, "process_small"))
           {
-             vd->stroke_width = 1.5;
-             vd->shrink = 4;
-             vd->shift = 2;
+             vd->stroke_width = ELM_SCALE_SIZE(1.5);
           }
+        vd->shrink = 2 * vd->stroke_width;
+        vd->shift = vd->stroke_width + 1;
         _progressbar_process_style(vd);
         return;
      }