Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    7
    Vote Rating
    0
    Thinian is on a distinguished road

      0  

    Default Unwanted TreeGrid Header resize on mouseover

    Unwanted TreeGrid Header resize on mouseover


    When I mouse over the header of some of my TreeGrids, the height of the header jumps to 30px, and stays there. If I collapse the view the TreeGrid is in, and then open it again, the TreeGrid header is set back to the correct height and subsequent mouseovers work fine.

    I set a break point in ColumnHeader$Head.activate():

    protected void activate() {
    if (!cm.isMenuDisabled(indexOf(this))) {
    XElement td = getElement().findParent("td", 3);
    td.addClassName(styles.headOver());
    int h = td.getHeight(true);
    getElement().setHeight(h, true);
    if (btn != null) {
    XElement.as(btn).setHeight(h, true);
    }
    }
    }

    and the value for h is coming back as 30 when it goes wrong and 21 when it works right.

    Oddly this happens on some of my TreeGrids, but not all, although I can not see any difference in the way I am creating them.

    I have been seeing this behavior since I moved to 3.0.0. I am currently using release 3.0.0-rc2.

    Thanks in advance.

    p.s. I also occasionally see some unwanted resizing of the widths of the right most column on the same TreeGrids that have the height problem.

    See below for before and after mousover.
    Attached Images