PDA

View Full Version : Slider (stand alone): thumb position wrong up when placed in Ext.Container



NoSpecialUser
23 May 2011, 6:13 PM
Hi,

it took me days to track this bugger down. When placing a slider into an Ext.Container with other components, the slider width is rendered correctly. However, the thumb's dragObj boundary is always calculated as if there were no other components in the container, i.e. way too wide, thus moving the thumb out of visible range at higher values.

It does not matter whether or not one specifies flex layouting or a fixed width for the slider.
It does not matter whether the value is input via config "value" option or .setValue().

Quick hack to fix: """sliderElementReference.getThumb().dragObj.updateBoundary();""" after the component has rendered.

Cheers

Gairon
27 Jul 2011, 9:09 AM
The same bug when I put slider into toolbar.
Thanks for quick hack - it works.

bmckenna1982
16 Mar 2012, 8:57 AM
Where do you put that fix?