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

ScrollIntoView centers horizontally enen without Columns defined #776

Merged
merged 1 commit into from Mar 15, 2018
Merged

Conversation

pyscripter
Copy link
Contributor

This PR extends ScrollIntoView to scroll horizontally even when no Columns are defined. The changes are minimal and have been tested in production code for years.

This is handy. For example the following picture shows you a VirtualStringTree decendent VirtualExplorerTree.
capture
After clicking on the directory chardet, it is scrolled into view centered without the user having to scroll horizontally.
capture2

Horizontal centering happens only when toCentreScrollIntoView is set and the behavior is the same as if a single column was defined. The behavior is identical to the current code if Columns exist.

@joachimmarder joachimmarder merged commit f482a1b into JAM-Software:master Mar 15, 2018
joachimmarder pushed a commit that referenced this pull request Mar 17, 2018
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.

None yet

2 participants