I have a simple Ext.ProgressBar and need to double it’s height which works but didn’t scale the progress image, just the outer box. I thought OK, maybee it is to small and can’t scale but it has a height of >800px (sencha original images).
So how can this be done?
Here’s the config
{
xtype: 'progressbar',
text: 'Some text',
border: 1,
height: 40
}
Height of progress bar is set in style definition. You can change height by changing
.x-progress-barcss class. In modern browsers (eg. Chrome) all you need to do is to changeheightproperty, because background image is definied as gradient. Example:Working sample: http://jsfiddle.net/D2QYN/2/
Another way is to attach handler to
renderevent and setheightof child elements which are not scaled verically. Example handler:Working sample: http://jsfiddle.net/D2QYN/3/