EasyUI Forum

General Category => Bug Report => Topic started by: mzeddd on April 15, 2016, 05:03:17 AM



Title: Not precise ruller in slider
Post by: mzeddd on April 15, 2016, 05:03:17 AM
If I define slider like in example bolow I can see that pointer is not aligned with ruller
Code:
<input class="easyui-slider" style="width:300px" 
    data-options="showTip:true,min:1,max:24,value:12,rule: [1,'|',6,'|',12,'|',18,'|',24]">


Title: Re: Not precise ruller in slider
Post by: jarry on April 15, 2016, 09:04:11 AM
Your rule distance values are not considered equal. Please try this instead.
Code:
<input class="easyui-slider" style="width:300px" 
    data-options="showTip:true,min:1,max:24,value:12,rule: [1,'|',6.75,'|',12.50,'|',18.25,'|',24]">
or
Code:
<input class="easyui-slider" style="width:300px" 
    data-options="showTip:true,min:1,max:24,value:12,rule: [1,'|','|','|','|',6,'|','|','|','|','|',12,'|','|','|','|','|',18,'|','|','|','|','|',24]">


Title: Re: Not precise ruller in slider
Post by: mzeddd on April 15, 2016, 09:20:04 AM
Thanks,

Second case is OK for me.