[CLOSED] TreeNode Height

  1. #1

    [CLOSED] TreeNode Height

    Hi,

    If I set the height of a treenode the drag and drop stops working properly. If you click and drag a treenode from somewhere other than the top line the node isn't moved.

    <%@ Page Language="C#" %>
    <!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 runat="server">
        <title>TreePanel Example</title>
        <style type="text/css">
            .x-tree-ec-icon { display: none; }
            .x-tree-node-indent { display: none; }
            .x-tree-root-ct, .x-tree-node-ct { margin: 5px 0 0; padding: 0 5px 0; }
            .x-tree-node-ct { margin-top: 0; }
        </style>
    </head>
    <body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ExtScriptManager" runat="server" />
    
        <ext:TreePanel runat="server" Lines="false" DDScroll="true"
            EnableDD="true" DDAppendOnly="false" RootVisible="true"
            Width="250" Height="300" DDGroup="Example" AutoScroll="true">
            <Root>
                <ext:TreeNode Text="Test1" Icon="UserSuitBlack" Expanded="true" AllowDrag="false">
                    <Nodes>
                        <ext:TreeNode Text="<div style='height: 50px;'>Test2
    " Leaf="true" Icon="CalendarSelectDay" />
                        <ext:TreeNode Text="<div style='height: 40px;'>Test3
    " Leaf="true" Icon="CalendarSelectDay" />
                    </Nodes>
                </ext:TreeNode>
            </Root>
        </ext:TreePanel>
    
        <ext:TreePanel ID="TreePanel1" runat="server" Lines="false" DDScroll="true"
            EnableDD="true" DDAppendOnly="false" RootVisible="true"
            Width="250" Height="300" DDGroup="Example" AutoScroll="true">
            <Root>
                <ext:TreeNode Text="TestA" Icon="UserSuitBlack" Expanded="true" AllowDrag="false">
                    <Nodes>
                        <ext:TreeNode Text="TestB" Leaf="true" Icon="CalendarSelectDay" />
                        <ext:TreeNode Text="<div style='height: 80px;'>TestC
    " Leaf="true" Icon="CalendarSelectDay" />
                    </Nodes>
                </ext:TreeNode>
            </Root>
        </ext:TreePanel>
    </form>
    </body>
    </html>
    Any suggestions on how to resolve this please?

    Ben
  2. #2

    RE: [CLOSED] TreeNode Height

    Hi,

    Your div tag (which defined in Text) is overlapping the drag element. Try to set 'width:1%;' for that div


    Text="<div style='height: 50px;width:1%;'>Test2
    "
  3. #3

    RE: [CLOSED] TreeNode Height

    Thanks, that does indeed resolve the problem.

    Regards,
    Ben

Similar Threads

  1. Replies: 1
    Last Post: May 14, 2011, 10:51 AM
  2. [CLOSED] [1.0] MessageBoxConfig textbox height - min height
    By methode in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 07, 2010, 10:12 AM
  3. Tab Height AutoLoad Height
    By jordnlvr in forum 1.x Help
    Replies: 0
    Last Post: Mar 26, 2010, 7:26 PM
  4. Replies: 0
    Last Post: Dec 10, 2009, 11:14 AM
  5. [CLOSED] Getting TreeNode by id?
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 25, 2009, 10:25 AM

Posting Permissions