I’ve added a new ScrollPanel control as the original was never really intended for users to use directly and only had vertical scrolling.
The new version is easy to implement and:
- Has both horizontal and vertical scrolling
- Setting vertical wrap disables horizontal scrolling if you need
- Allows for child ScrollPanels (nested clipping works-- single level deep for now)
- Has comprehensive methods for getting just about any info you need about the current state of the scrollable area
- Has methods for scrollToTop, Bottom, Left & Right
- Works for both text and Elements together or separately
- Can dynamically update the scrollbar sizes with a single method call
Anyways, It should be available with tonight’s update… or you can grab it from the repo now that it is finished.
On a side note, I may be updating how clipping is handled, giving you the ability to have as many separate clipping layers as you need for any given control. The clipping will likely be as automatic as it is now, but could potentially be something you need to manage if creating complex nesting situations that require resize+clipping from multiple parent elements (and by manage I mean add/remove the clipping layer… the rest is done internally).
The general idea worked as I have it implemented now (2 layers) for the ScrollPanel, but there doesn’t really seem to be a reason not to update this to handle infinite clipping layers and I’ve already seen from many people decent use cases for why this would be beneficial.
Sooo… um… that’s all for now… /wave