-
Notifications
You must be signed in to change notification settings - Fork 155
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
Expand an expandable node once it is visible. #1057
base: master
Are you sure you want to change the base?
Expand an expandable node once it is visible. #1057
Conversation
Test Results 849 files - 2 849 suites - 2 1h 27m 11s ⏱️ - 15m 10s For more details on these failures, see this check. Results for commit f7980cf. ± Comparison against base commit ffb0cdc. This pull request removes 1557 tests.
♻️ This comment has been updated with latest results. |
@@ -118,8 +122,65 @@ public TableViewer(Composite parent, int style) { | |||
public TableViewer(Table table) { | |||
this.table = table; | |||
hookControl(table); | |||
// listen to tree resizes. | |||
table.addControlListener(new ControlListener() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be added only when setInncrementalDisplay is invoked with a value > 0 (and removed if value is then set to 0) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes.. i will fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mickaelistria I have fixed it. Also I have modified the listener to honor only one expansion per scroll bar drag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks!
cee81b4
to
500fe10
Compare
It will calculate the location of expandable node, once it enters visible area of Viewer expand it. Install resize listener for control when limit is set and remove limit is reset.Do the same thing for Vertical Scroll bar control. Honor the entire drag event as one selection at the end of the drag. see eclipse-platform#818
500fe10
to
f7980cf
Compare
It will calculate the location of expandable node, once it enters visible area of Viewer expand it.
Fixes #1041