Results 1 to 3 of 3

Thread: Measure a Width with ExtJS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default Measure a Width with ExtJS

    Hi,


    how can i do for measure a width of a string value with ExtJs?


    I need compare the width a column with the width a data(string...).


    Ex:


    Code:
    var getWidthString = function (grid, dataName)
    {
    var widthColumn = grid.columns[0].width;
    var witdhName = dataName.width(someone component Ext to make this?)
    
    
    if (widthColumn > witdhName )
    {
    return 1;
    }
    else
    {
    return 2;
    }
    }

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Posts
    116
    Answers
    3
    Vote Rating
    6
      0  

    Default

    Yes there is, take a look at the following link:

    http://docs.sencha.com/ext-js/4-1/#!...method-measure

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by johanhaest View Post
    Yes there is, take a look at the following link:

    http://docs.sencha.com/ext-js/4-1/#!...method-measure
    Thx...

    xD

Posting Permissions

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