Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1597

The tab was selected cann't be selected while drag & drop.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.5.2
    • Component/s: Components
    • Labels:
    • Environment:

      Tomcat 7.0.35 / JDK 1.6.0_38 / IE 9.0 or Firefox 18.0.1

      Description

      If dragged component was selected, it doesn't sytle as selcted when it is dropped.(I use tab.getTabbox().setSelectedTab(tab), it doesn't work also.)

      tab.addEventListener("onDrop", new EventListener()
      {
      @Override
      public void onEvent(Event event)
      throws Exception
      {
      if (event instanceof DropEvent)

      { DropEvent evt = (DropEvent) event; Component dragged = evt.getDragged(); Component target = evt.getTarget(); if (dragged instanceof Tab && target instanceof Tab) dragged.getParent().insertBefore(dragged, target); }

      }
      });

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            jasonhoo jasonhoo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: