Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8109237

ClipView hides its contained node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Withdrawn
    • Icon: P4 P4
    • None
    • fx1.2.1
    • javafx
    • Windows 7 and Windows Xp
      latest Jdk, latest NetBeans

      Bug on the ClipView

      try setting the height of the clip area higher than the height of the component contained and then try panning upwards.

      here is an example: from Rakesh Menon blog
      /**
      * PaneClipView
      */
      var paneClipView : ClipView = ClipView {
      node: ImageView {
      image: imageView.image
      cursor: Cursor.HAND
      }
      pannable: true
      layoutInfo: LayoutInfo {
      width: 312
      height: 300 // which is smaller than 200 (size of the the picture used)
      }
      }

      you will notice something not normal (you can scroll your entire content up so that you don't see it.)
      the same thing happens when panning towards left. i can "hide" my content entirely

      if the size of element contained is smaller then the size of the clip area then you should only be able "move" your content inside your clip area, not "hide" it upwards or leftside.

      i also tested other components inside the clipview, like simple rectangles or custom nodes (all inside a hbox)

            rbair Richard Bair (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: