Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust for dynamically changed container size. #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

reimund
Copy link

@reimund reimund commented Aug 10, 2012

I added so that the height of the handle container is updated in the repaint method.

This makes sense if you programatically want to alter the size of your scrollable container after the fact.

EDIT: Made a few more changes to accommodate for a resized element:

  1. As the element is resized to be bigger than the content, the scroller gets hidden.
  2. If the user have scrolled down a bit, and then the element is resized so that the scroller is no longer needed, the content should be scrolled up so that the entire content can be seen.
  3. The scroller elements are always created, they are now hidden instead if the container is large enough for the entire content to be seen. The reason for this is that the scroller elements might be needed later if the container is made smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant