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

scroll to view #15

Open
szczepanR opened this issue Nov 14, 2021 · 3 comments
Open

scroll to view #15

szczepanR opened this issue Nov 14, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@szczepanR
Copy link

Hi,
some time ago I wrote an email to you about a specific function which I called "scroll to view". The idea is to scroll to see elements from the list which are outside from the visible area. I know that you implemented the scroll function with press scrollbar time but it is hard to use it when you don't have full control over the list (the number of the elements is not fixed). Any chance to implement that function?

@gaozhao1989
Copy link
Owner

Hi @szczepanR,
Thanks for your feedback on this.
Unfortunately JAB does not provide API to control the scroll, slide... So, that mean pyjab can only scroll the bar use mouse action.
And also the does not found value change on scroll bar which can monitor the position of scroll bar.
But I have found the another attribute "PropertyVisibleDataChange" changed when scroll bar, will try if this related with position of scroll bar.

@szczepanR
Copy link
Author

Great thanks for working on this.
I thought that it can be possible by comparing the bounds of the parent and the actual location of the element on the list, i.e. if the element is not in the visible part of the parent window then try scroll and recheck. that is my idea to solve this.

@gaozhao1989
Copy link
Owner

Thanks for your suggestion.
Unfortunately, the parent element does not have visible "value" change can not found after scroll the bar.
So, Will check with attribute "PropertyVisibleDataChange" later if this can be used.

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

No branches or pull requests

2 participants