-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix #5760: only show ui-grid-scrollbar-placeholder if there's a horizontal scrollbar in another container #6244
Conversation
…ontal scrollbar in another container
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.
Could you add some unit tests to cover all possible scenarios for this? I want to make sure that no one breaks this function in the future.
I don't know enough about the inner workings of ui grid to make these unit tests work. I also was unable to get the unit tests to even execute on my machine. PhantomJS 2.1.1 (Linux 0.0.0) GridRenderContainer factory needsHScrollbarPlaceholder should return false if the container does not have the horizontal scrollbar enabled FAILED |
Closing since we are unable to fix the unit tests at this time. |
Just wondering what's the deal with this issue as it's still an issue it seems. |
Basically adding a check to see if the sum of all of the widths containers in the grid exceeds the viewport size. If true and if horizontal scrolling is not disabled, then show the ui-grid-scrollbar-placeholder div.