[JIRA defect fix: S1-1887]: indicator not moving to extreme ends.
authorshilpa singh <shilpa.singh@samsung.com>
Wed, 28 Mar 2012 13:48:32 +0000 (19:18 +0530)
committershilpa singh <shilpa.singh@samsung.com>
Thu, 29 Mar 2012 08:33:51 +0000 (14:03 +0530)
Issue happened when indicator area increase fix was done for smoother
handling.
current fix: fixes the jira defect and also increases the indicator area for
smoother handling.
Change-Id: If7f79ec886735a119e8900783524e79d9f421068

themes/widgets/slider.edc

index f078ec3..f0844ed 100644 (file)
             scale: 1;
             description { state: "default" 0.0;
                fixed: 1 1;
-               min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
+               min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
                aspect: 1.0 1.0;
                aspect_preference: VERTICAL;
                color: 0 0 0 0;
             }
          }
-         part { name: "button.base";
-            type: RECT;
-            mouse_events: 0;
-            scale: 1;
-            description { state: "default" 0.0;
-               fixed: 1 1;
-               min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
-               max: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
-               color: 0 0 0 0;
-            }
-         }
          part { name: "button0";
             mouse_events: 0;
             scale: 1;
                   }
                }
             }
-            part { name: "indicator.area";
-               type: RECT;
-               mouse_events: 0;
-               scale: 1;
-               description { state: "default" 0.0;
-                  min: SLIDER_SWALLOW_BAR_MIN_WIDTH_INC 1.5*SLIDER_SWALLOW_BAR_HEIGHT_INC;
-                  max: 99999 1.5*SLIDER_SWALLOW_BAR_HEIGHT_INC;
-                  align: 1.0 0.5;
-                  rel1 {
-                     to_x: "bar_left_padding";
-                     relative: 1.0 0.0;
-                  }
-                  rel2 {
-                     to_x: "bar_right_padding";
-                     relative: 0.0 1.0;
-                  }
-                  color: 0 0 0 0;
-               }
-            }
             part {
                name: "bar_left_padding";
                type: SWALLOW;
                dragable {
                   x: 1 1 0;
                   y: 0 0 0;
-                  confine: "indicator.area";
+                  confine: "bg";
                }
                description { state: "default" 0.0;
-                  min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
+                  min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
                   fixed: 1 1;
                   align: 0.5 0.5;
                   color: 0 0 0 0;