Skip to content

Fix scroll bar not working in the corner if only one scroll direction#233

Merged
mofojed merged 2 commits intodeephaven:mainfrom
mofojed:231-corner-scroll
Oct 14, 2021
Merged

Fix scroll bar not working in the corner if only one scroll direction#233
mofojed merged 2 commits intodeephaven:mainfrom
mofojed:231-corner-scroll

Conversation

@mofojed
Copy link
Member

@mofojed mofojed commented Oct 13, 2021

- The scroll mouse handlers always assumed the other scroll bar was showing and there was always a corner
- Check if there's a scroll bar needed in the other direction to calculate the proper height
- Fixes deephaven#231
@mofojed mofojed added bug Something isn't working web-client-ui labels Oct 13, 2021
@mofojed mofojed added this to the October 2021 milestone Oct 13, 2021
@mofojed mofojed requested a review from dsmmcken October 13, 2021 20:43
@mofojed mofojed self-assigned this Oct 13, 2021
@dsmmcken
Copy link
Contributor

Noticed a minor issue because this is now working correctly, in isHorizontalBarHover the !isVerticalBarHover && // vert bar gets priorty in overlapped corner hover area clause could be false, when in the sliver above horz scroll bar, even when there was no vertbar. Added a has respective bar to each. The bar would be scrollbar in the red-circle (which is correct, but it wouldn't render the hover).

image

@mofojed mofojed merged commit 6fd114f into deephaven:main Oct 14, 2021
@mofojed mofojed deleted the 231-corner-scroll branch October 14, 2021 15:07
mofojed added a commit to mofojed/web-client-ui that referenced this pull request Oct 14, 2021
  * [deephaven#232](deephaven#232) Fix notebook functionality ([@mofojed](https://github.com/mofojed))
* `code-studio`, `components`, `dashboard-core-plugins`
  * [deephaven#228](deephaven#228) Fix card flip animation showing back-face in chrome ([@dsmmcken](https://github.com/dsmmcken))
* `grid`
  * [deephaven#233](deephaven#233) Fix scroll bar not working in the corner if only one scroll direction ([@mofojed](https://github.com/mofojed))
* `dashboard-core-plugins`
  * [deephaven#230](deephaven#230) Fix up getTableMapForDashboard selector ([@mofojed](https://github.com/mofojed))

- Don ([@dsmmcken](https://github.com/dsmmcken))
- Mike Bender ([@mofojed](https://github.com/mofojed))
@mofojed mofojed mentioned this pull request Oct 14, 2021
mofojed added a commit that referenced this pull request Oct 14, 2021
* [#232](#232) Fix notebook functionality ([@mofojed](https://github.com/mofojed))
* `code-studio`, `components`, `dashboard-core-plugins`
  * [#228](#228) Fix card flip animation showing back-face in chrome ([@dsmmcken](https://github.com/dsmmcken))
* `grid`
  * [#233](#233) Fix scroll bar not working in the corner if only one scroll direction ([@mofojed](https://github.com/mofojed))
* `dashboard-core-plugins`
  * [#230](#230) Fix up getTableMapForDashboard selector ([@mofojed](https://github.com/mofojed))

- Don ([@dsmmcken](https://github.com/dsmmcken))
- Mike Bender ([@mofojed](https://github.com/mofojed))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working web-client-ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dead corner in grid scrolling when attempting to click in bottom right corner

2 participants