angular-ui/ui-grid

Keeps scrollbar space in the header when you zoom out the page

Open

#6,071 opened on Mar 13, 2017

View on GitHub
 (0 comments) (1 reaction) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
good first issue

Description

I'm having a problem using ui-grid.

On my 100% zoom page, a vertical scrollbar appears. When I zoom the page to 90%, even with all the records within the grid-content space, the scrollbar spacing stays in the header.

In my code the config is enableVerticalScrollbar = 1. I tried to control the scrollbar presentation to solve the problem, however when I remove the scrollbar dynamically (enableVerticalScrollbar = 0) the last header column is not loaded correctly. I tried to put enableVerticalScrollbar = 2, but it also don't work correctly and I see isn't recommended.

Zoom 100%: grid_100

Zoom 90%: grid_90

  • The colunm "Estabelecimento" is fixed on the right.

Any suggestions on how I can remove this scrollbar space?

Thank you!

Contributor guide