Results 1 to 2 of 2

Thread: How can I fix TreePanel's width calculation?

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2016

    Default How can I fix TreePanel's width calculation?

    In ExtJS 5.0.1, the width of the item container on a TreePanel is calculated without the component's border taken into account, making it incorrect.

    Here is a simple fiddle that shows the problem.

    Because the width is calculated incorrectly, the horizontal scrollbar shows up when it shouldn't.

    I've been trying to find a workaround or a simple override I could do, but it is taking a while to even pinpoint exactly where the issue is.

    This definitely seems like something that has been seen and solved before, but I haven't had much luck in my searches.If someone has already encountered this and found a fix, I would really appreciate it.

    Edit: This appears to not be an issue in Firefox, but I see the problem in Chrome and IE 11.

  2. #2
    Sencha User
    Join Date
    Feb 2013


    Thanks for the report. I see the issue you described, but it looks like it was resolved in the next release as I can't recreate using 5.1.0. Perhaps this won't meet your requirements, but the issue goes away if you set border to zero.

Similar Threads

  1. [CLOSED] [4.1.0] Error in Grid column width calculation using IE8
    By marjon in forum Ext:Bugs
    Replies: 12
    Last Post: 22 Jan 2013, 3:28 AM
  2. [FIXED-463] Wrong calculation of panel width in 0.97 (Worked in 0.96)
    By Steffen Hiller in forum Sencha Touch 1.x: Bugs
    Replies: 7
    Last Post: 5 Nov 2010, 1:55 PM
  3. Table column width calculation issue moving from 2.2 to 3.2.1
    By harperml in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 30 Jun 2010, 8:12 AM
  4. Weird input width calculation inside a ComboBox
    By luisve in forum Sencha GXT Q&A
    Replies: 1
    Last Post: 6 Aug 2009, 8:56 AM
  5. [1.1.1] Incorrect width calculation for messagebox
    By tookoo in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 22 Feb 2008, 11:53 AM

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