Results 1 to 4 of 4

Thread: Ext.audio question

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    133
    Answers
    1
    Vote Rating
    -4
      0  

    Default 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.

    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);
    Thanks,
    Sudhir

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,413
    Answers
    3898
    Vote Rating
    1269
      0  

    Default

    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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    133
    Answers
    1
    Vote Rating
    -4
      0  

    Default

    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

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,413
    Answers
    3898
    Vote Rating
    1269
      0  

    Default

    Yes, have a regular component as an item before the audio component.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •