[1.0] TreePanel ghosting effect on node click

  1. #1

    [1.0] TreePanel ghosting effect on node click

    I'm noticing a very strange behavior with the TreePanel, when the text of a node goes off the side of the TreePanel - when clicking on a node, the contents of the TreePanel sometimes jumps to the left of the tree and immediately returns to its original position, sort of like a ghosting effect.

    Unfortunately I can't capture the effect through screen capture videos as it happens too quickly.

    The following code under IE8 should replicate the issue - expand all the nodes by clicking on the "Expand All" button, then click repeatedly on one of the nodes which contains a large amount of text and goes off the side of the tree. You should notice a slight ghosting effect on some of the node clicks.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
            
            <ext:TreePanel 
                ID="TreePanel1" 
                runat="server" 
                Icon="BookOpen" 
                Title="Catalog" 
                AutoScroll="true"
                Width="300"
                Height="700">
                <TopBar>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            <ext:Button ID="Button1" runat="server" Text="Expand All">
                                <Listeners>
                                    <Click Handler="#{TreePanel1}.expandAll();" />
                                </Listeners>
                            </ext:Button>
                            <ext:Button ID="Button2" runat="server" Text="Collapse All">
                                <Listeners>
                                    <Click Handler="#{TreePanel1}.collapseAll();" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Root>
                    <ext:TreeNode Text="Composers" Expanded="true">
                        <Nodes>
                            <ext:TreeNode Text="Beethoven" Icon="UserGray">
                                <Nodes>
                                    <ext:TreeNode Text="Concertos">
                                        <Nodes>
                                            <ext:TreeNode Text="No. 1 - C" Icon="Music" />
                                            <ext:TreeNode Text="No. 2 - B-Flat Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 3 - C Minor" Icon="Music" />
                                            <ext:TreeNode Text="No. 4 - G Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 5 - E-Flat Major No. 5 - E-Flat Major No. 5 - E-Flat Major No. 5 - E-Flat Major" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="Quartets">
                                        <Nodes>
                                            <ext:TreeNode Text="Six String Quartets" Icon="Music" />
                                            <ext:TreeNode Text="Three String Quartets" Icon="Music" />
                                            <ext:TreeNode Text="Grosse Fugue for String Quartets Grosse Fugue for String Quartets Grosse Fugue for String Quartets" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="Sonatas">
                                        <Nodes>
                                            <ext:TreeNode Text="Sonata in A Minor Sonata in A Minor Sonata in A Minor Sonata in A Minor Sonata in A Minor" Icon="Music" />
                                            <ext:TreeNode Text="sonata in F Major" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="Symphonies">
                                        <Nodes>
                                            <ext:TreeNode Text="No. 1 - C Major No. 1 - C Major No. 1 - C Major No. 1 - C Major No. 1 - C Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 2 - D Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 3 - E-Flat Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 4 - B-Flat Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 5 - C Minor" Icon="Music" />
                                            <ext:TreeNode Text="No. 6 - F Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 7 - A Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 8 - F Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 9 - D Minor" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                </Nodes>
                            </ext:TreeNode>
                            <ext:TreeNode Text="Brahms" Icon="UserGray">
                                <Nodes>
                                    <ext:TreeNode Text="Concertos">
                                        <Nodes>
                                            <ext:TreeNode Text="Violin Concerto" Icon="Music" />
                                            <ext:TreeNode Text="Double Concerto - A Minor" Icon="Music" />
                                            <ext:TreeNode Text="Piano Concerto No. 1 - D Minor" Icon="Music" />
                                            <ext:TreeNode Text="Piano Concerto No. 2 - B-Flat Major" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="Quartets">
                                        <Nodes>
                                            <ext:TreeNode Text="Piano Quartet No. 1 - G Minor" Icon="Music" />
                                            <ext:TreeNode Text="Piano Quartet No. 2 - A Major" Icon="Music" />
                                            <ext:TreeNode Text="Piano Quartet No. 3 - C Minor" Icon="Music" />
                                            <ext:TreeNode Text="Piano Quartet No. 3 - B-Flat Minor" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="Sonatas">
                                        <Nodes>
                                            <ext:TreeNode Text="Two Sonatas for Clarinet - F Minor" Icon="Music" />
                                            <ext:TreeNode Text="Two Sonatas for Clarinet - E-Flat Major" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                    <ext:TreeNode Text="Symphonies">
                                        <Nodes>
                                            <ext:TreeNode Text="No. 1 - C Minor" Icon="Music" />
                                            <ext:TreeNode Text="No. 2 - D Minor" Icon="Music" />
                                            <ext:TreeNode Text="No. 3 - F Major" Icon="Music" />
                                            <ext:TreeNode Text="No. 4 - E Minor" Icon="Music" />
                                        </Nodes>
                                    </ext:TreeNode>
                                </Nodes>
                            </ext:TreeNode>
                            <ext:TreeNode Text="Mozart" Icon="UserGray">
                                <Nodes>
                                    <ext:TreeNode Text="Concertos">
                                        <Nodes>
                                            <ext:TreeNode Text="Piano Concerto No. 12" Icon="Music"  />
                                            <ext:TreeNode Text="Piano Concerto No. 17" Icon="Music"  />
                                            <ext:TreeNode Text="Clarinet Concerto" Icon="Music"  />
                                            <ext:TreeNode Text="Violin Concerto No. 5" Icon="Music"  />
                                            <ext:TreeNode Text="Violin Concerto No. 4" Icon="Music"  />
                                        </Nodes>
                                    </ext:TreeNode>
                                </Nodes>
                            </ext:TreeNode>
                        </Nodes>
                    </ext:TreeNode>
                </Root>
            </ext:TreePanel>
        </form>
    </body>
    </html>
    Is there a way to stop this from happening? It only appears to happen on nodes which contain enought text to go off the side of the TreePanel.

    Thanks

    Dan
  2. #2
    I'm also noticing the effect on the Sencha examples actually - http://dev.sencha.com/deploy/dev/exa...two-trees.html

    Expand to one of the nodes which goes off the side of the TreePanel (e.g. Ext JS >> ext-core >> test >> yui_2.6.0 >> yui >> build >> yahoo-dom-event >> yahoo-dom-event.js), and repeatedly click on this node - the same ghosting effect sometimes occurs.

    I can't replicate the problem in Firefox. Appears to just be an IE issue.
  3. #3
    Hi,

    I was just wondering if anyone has managed to replicate this issue yet?

    Thanks,

    Dan
  4. #4
    Hi,

    I tried Sencha online sample but I was not able to reproduce it. May you can create screencast to demonstrate the steps to reproduce?
  5. #5
    Hi,

    I reproduced it using Sencha example, but, seems, I can not reproduce this using your code. Strange.

    Anyway the fact it's reproducible in a pure Sencha example means that it's came to Ext.Net from there. Or, perhaps, it's a browser's issue/bug.

    I think it's a minor issue/bug but, pretty sure, it's very hard to workaround/fix.

    The best way is to report this the Sencha team.

Similar Threads

  1. [CLOSED] [1.0] Treepanel click node problem with ie9
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 13, 2012, 12:44 PM
  2. No Expanded on click treepanel node!
    By abis in forum 2.x Help
    Replies: 2
    Last Post: Aug 12, 2012, 5:22 AM
  3. Replies: 1
    Last Post: Apr 25, 2011, 12:44 PM
  4. [CLOSED] Select node on Treepanel with right click...
    By tjbishop in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 13, 2010, 10:33 PM
  5. Right-click node select in TreePanel?
    By dbassett74 in forum 1.x Help
    Replies: 6
    Last Post: May 14, 2009, 12:17 PM

Posting Permissions