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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.5.2
    • 6.5.1
    • Components
    • Tomcat 7.0.35 / JDK 1.6.0_38 / IE 9.0 or Firefox 18.0.1

      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); }

      }
      });

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

              Created:
              Updated:
              Resolved: