-
27 Feb 2012 1:00 PM #1
Unanswered: Ext.audio question
Unanswered: Ext.audio question
By default, if use setHtml method on Ext.Audio, it puts the HTML below the audio progress bar, how can I setup above the audio bar ? Also, How can I increase height of Audio component ? , I tried to increase getHeight/setHeight, nothing seems to make any difference.
Thanks,Code:var oneAudioFile = Ext.create(Ext.Audio, { url : 'one.mp3' }); oneAudioFile.setHtml("One File); // sets the html below the audio progress bar , need bwlow oneAudioFile.setHeight(oneAudioFile.getHeight() * 1.5); // Need to increase height for all components i later too audioTab.add(oneAudioFile);
Sudhir
-
28 Feb 2012 2:47 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3161
The html will always be under the indicator.
Are you trying to increase the size trying to get the indicator to be larger?Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Feb 2012 5:03 PM #3
Thanks for reply. There is no way to get the HTML on the top ? Looks like I will need to have separate HTML element component above each audio component. Is the approach correct ?
Actually, I wanted to have more vertical space between two audio indicators.I find default spacing too close.
Thanks
-
28 Feb 2012 5:08 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3161
Yes, have a regular component as an item before the audio component.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote