PDA

View Full Version : Slider in HBox gives NaN @ 4.1



ajpfister06
2 Jun 2012, 5:55 PM
Not sure what broke this code from 4.0.7 to 4.1 but the Slider doesn't render the full width and the tip says "NaN" when you try to drag it. Any help would be appreciated.


var win = Ext.create('Ext.window.Window', {
layout: {
type: 'vbox',
align: 'center'
},
height: 125,
width: 245,
items: [
{
xtype: 'panel',
flex: 1,
layout: {
type: 'hbox',
align: 'middle'
},
items: [
{
xtype: 'button',
text: 'Hello'
},
{
xtype: 'slider',
width:100,
value: 25,
increment: 5,
minValue:0,
maxValue:50
}
]
},
{
xtype: 'panel',
flex: 1,
layout: {
type: 'hbox',
align: 'middle'
},
items: [
{
xtype: 'button',
text: 'Hello'
},
{
xtype: 'slider',
width:100,
value: 25,
increment: 5,
minValue:0,
maxValue:50
}
]
}
]
}
);
win.show();

scottmartin
3 Jun 2012, 8:13 AM
What exact version are you using. It seems to work fine on my versions.

35876

Regards,
Scott.

ajpfister06
3 Jun 2012, 10:31 AM
User error. I had swapped out the reference from 4.0.7 to 4.1 but forgot to do the same for the CSS file.

thanks for confirming the error was on my end