2 * @class Ext.layout.component.field.Slider
3 * @extends Ext.layout.component.field.Field
7 Ext.define('Ext.layout.component.field.Slider', {
9 /* Begin Definitions */
11 alias: ['layout.sliderfield'],
13 extend: 'Ext.layout.component.field.Field',
19 sizeBodyContents: function(width, height) {
20 var owner = this.owner,
21 thumbs = owner.thumbs,
22 length = thumbs.length,
23 inputEl = owner.inputEl,
24 innerEl = owner.innerEl,
29 * If we happen to be animating during a resize, the position of the thumb will likely be off
30 * when the animation stops. As such, just stop any animations before syncing the thumbs.
32 for(; i < length; ++i) {
33 thumbs[i].el.stopAnimation();
37 inputEl.setHeight(height);
38 innerEl.setHeight(Ext.isNumber(height) ? height - inputEl.getPadding('t') - endEl.getPadding('b') : height);
41 inputEl.setWidth(width);
42 innerEl.setWidth(Ext.isNumber(width) ? width - inputEl.getPadding('l') - endEl.getPadding('r') : width);