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