Results 1 to 2 of 2

Thread: HBox with text overflow

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2014

    Default HBox with text overflow

    For the life of me I can't figure out what should be so simple. So obviously I'm overthinking it. I want some variable length text with a button beside it within a container (which itself could vary in width). The button is optional so I can't just use a button with iconCls. The text could be short and then the button displays beside. If the text is long then it should ellipsis with the button showing.

    I've setup the following fiddle where you can just change the html property. It works when the text is short, but when changed to long it doesn't work. If I flex:1 the text then it properly ellipsis but short text the button isn't directly beside the text.

  2. #2
    Sencha User
    Join Date
    Jul 2009
    Colorado Springs, CO


    You could dynamically set ellipsis on the text using:


Similar Threads

  1. Ext.field.Text overflow
    By uksencha in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 22 Jun 2012, 1:48 AM
  2. [OPEN] TreeGrid text-overflow
    By esag_dk in forum Sencha GXT Bugs
    Replies: 1
    Last Post: 14 May 2012, 2:07 PM
  3. Hbox overflow
    By Daniels in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 7 Jul 2010, 9:43 AM
  4. Overflow ToolBar menu show Tooltip Text instead Text
    By terciofilho in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 7 Aug 2009, 11:22 AM
  5. Text Overflow in Grid
    By hvnontheirmnds in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 20 Aug 2008, 4:49 PM

Posting Permissions

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