Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    BUG The property canDrop of Portlet Layout cause out of control of browsers.

    Click image for larger version

Name:	portlet.PNG
Views:	35
Size:	31.0 KB
ID:	238322



    1. SmartGWT version : 4.0 or higher (include 6.0 evaluation ver)
    2. Browser: Chrome, IE, Edge, FireFox etc.. (newset)
    3. OS: Windows10, Windows7
    4. GWT Development Mode and normal browsers

    Dragging Portlet Layout cause serious problem. When I drag portlet layout(or sometime portlets), the browser is out of control. Not clicked, dragging or selected.
    I think, the property "canDrop" is not competible with portlet or portlet layout.
    The simple testcase is here.

    public void onModuleLoad()
    {
    Portlet portlet1 = new Portlet();
    portlet1.setTitle("1");
    Portlet portlet2 = new Portlet();
    portlet2.setTitle("2");
    Portlet portlet3 = new Portlet();
    portlet3.setTitle("3");
    Portlet portlet4 = new Portlet();
    portlet4.setTitle("4");

    PortalLayout portalLayout = new PortalLayout(1);
    portalLayout.setWidth100();
    portalLayout.setHeight100();
    portalLayout.setShowColumnMenus(false);

    portalLayout.setCanDrop(true); // browser stopped totally, if true
    portalLayout.setCanDragReposition(true);
    portalLayout.setCanDragResize(true);

    portalLayout.addPortlet(portlet1, 0, 0, 0);
    portalLayout.addPortlet(portlet2, 0, 0, 1);
    portalLayout.addPortlet(portlet3, 0, 1, 0);
    portalLayout.addPortlet(portlet4, 0, 1, 1);

    portalLayout.draw();
    }

    #2
    The PortalLayout class has various drag and drop features which are achieved by automatically setting lower-level properties like canDrop. By individually setting low-level properties like this, you could definitely cause problems, which would not necessarily be bugs.

    The basic question to answer whenever posting to a forum is: what are you hoping to achieve? Why are you trying to directly set the canDrop property?

    Also, be specific about what version you're testing - you must include the specific build date.

    Comment


      #3
      Ok, I got it. Thank you for your help.

      Comment

      Working...
      X