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 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,553
    Answers
    3931
    Vote Rating
    1272
      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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  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,553
    Answers
    3931
    Vote Rating
    1272
      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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •