Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1114

Treeview shows hit-place for dropping when dropping is forbidden

    Details

      Description

      When a treeview node is not draggable, it is impossible to drop a node above it, but the a "hit" mark appears, as if dropping could be possible.

      Steps to reproduce

      1. create a tree with draggable and undraggable nodes. The undraggable nodes should be below each other and on the top of the tree.
      2. move a draggable node over an undraggable element
      3. dropping is impossible (which is good) but the hit area is shown
      experienced behaviour

      hit area is shown even when dropping to that place is forbidden

      expected behaviour

      hit are is shown only when dropping is possible

      See the attached html for testing.
      You can place it into the alloy repo demos/tree directory

      testing the fix

      install http-server for nodejs

      npm install http-server -g

      run http-server from alloy-ui repo's root directory

      http-server

      I added a new tree example for the demos, so you can test my fix with the demos\tree\index.html file.
      Just point your browser into http-server's port.

        Attachments

        1. aui-test-after-fix.jpg
          aui-test-after-fix.jpg
          20 kB
        2. aui-test-before-fix.jpg
          aui-test-before-fix.jpg
          21 kB
        3. test.html
          2 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 29 weeks, 6 days ago

                  Packages

                  Version Package
                  2.0.x
                  1.5.x
                  2.0.0.6-deprecated
                  1.5.2.6