[OPEN] [#914] [3.2.1] portal drag event fires sporadically

  1. #1

    [OPEN] [#914] [3.2.1] portal drag event fires sporadically

    see code example below
    Thanks,
    /Z


    ext 3.2.1
    ie 11

    <%@ Page Language="C#"  %>
    
    
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html  lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Timecard</title>
    </head>
    
    
    
    
    <body >
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
    
    
    
    
    
    
    
    
        <form runat="server" id="form1">
              <ext:Panel ID="Panel1" runat="server" Title="Tab 1" Layout="Fit">
                <Items>
                    <ext:Portal ID="Portal1" runat="server" Border="false">
                        <Items>
                            <ext:PortalColumn ID="PortalColumn1" runat="server">
                                <Items>
                                    <ext:Portlet ID="Portlet1" runat="server" Title="Another Panel 1" Icon="Accept" />
                                </Items>
                            </ext:PortalColumn>
                            <ext:PortalColumn ID="PortalColumn2" runat="server">
                                <Items>
                                    <ext:Portlet ID="Portlet2" runat="server" Title="Panel 2" />
                                    <ext:Portlet ID="Portlet3" runat="server" Title="Another Panel 2" />
                                </Items>
                            </ext:PortalColumn>
                            <ext:PortalColumn ID="PortalColumn3" runat="server">
                                <Items>
                                    <ext:Portlet ID="Portlet4" runat="server" Title="Panel 3" />
                                    <ext:Portlet ID="Portlet5" runat="server" Title="Another Panel 3" />
                                </Items>
                            </ext:PortalColumn>
                        </Items>
                          <Listeners>
                              <Move Handler="alert('test');" />
                              <Drag Handler="alert('test1');" />
                          </Listeners>
                    </ext:Portal>
                </Items>
            </ext:Panel>
        </form>
    </body>
    </html>
    Last edited by Daniil; Oct 07, 2015 at 2:22 PM. Reason: [OPEN] [#914] [3.2.1]
  2. #2
    Hi @Z,

    Thank you for the report!

    Created an Issue:
    https://github.com/extnet/Ext.NET/issues/914

    I think fixing this is in sort of low priority, because a Portal's Drag event should not be used in this scenario, but DragOver instead. Though, I agree that it is not obvious.
  3. #3
    Hello, I don't get the bug here...

    When I drag an item, the drag event is not triggered.

    When I drag outside an item, inside the 'tab1' frame (where the portal container is comprised), the drag event triggers. i.e. if I click-hold-drag on a blank space between the items.

    That said, I couldn't reproduce this issue in Ext.NET 3.2.1 -- stock. Did I miss something?
    Last edited by fabricio.murta; Jan 12, 2016 at 6:01 PM.
    Fabrício Murta
    Developer & Support Expert
  4. #4
    When I drag an item, the drag event is not triggered.
    The Drag event doesn't trigger on each drag. It triggers sporadically. I am not able to determine an exact scenario to reproduce it consistently. Though, it always reproduces to me at some point if drag a lot of times. Well, not that many. I would estimate it is usually around 10.
  5. #5
    Okay, I could consistently reproduce the issue if I am using the 'Crisp' theme. It is necessary to keep moving the mouse (outside the dropped box, preferably) after you release the panel.

    I couldn't reproduce this issue on 'Gray' and 'Neptune' themes.
    Fabrício Murta
    Developer & Support Expert
  6. #6
    Interesting. I could reproduce with the Gray theme.

Similar Threads

  1. [CLOSED] GridPanel BeforeRowSelect event fires twice
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2013, 2:30 PM
  2. Replies: 5
    Last Post: Feb 20, 2013, 4:29 AM
  3. [CLOSED] GridPanel RowSelect event fires twice
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 17, 2012, 1:30 PM
  4. About portal(Drag and Drop) design
    By latif in forum 1.x Help
    Replies: 2
    Last Post: Dec 29, 2009, 8:58 AM
  5. Replies: 3
    Last Post: Feb 22, 2009, 2:58 PM

Posting Permissions