angular-ui/ui-grid

Vertical scrollbar width is not calculated on zoom change

Open

#5 192 ouverte le 7 mars 2016

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (2 496 forks)batch import
Browser ChromeBrowser Firefoxhelp wanted

Métriques du dépôt

Stars
 (5 395 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Scrollbar width is calculated when grid is initialized via

Steps to reporoduce the bug:

  1. Open http://plnkr.co/edit/Jlx891kOcOX39c1t9EpL?p=preview ... so far so good, grid's last column is right near scrollbar image

  2. Zoom in (e.g. to 200%) and you can see there is a space between last column's end and scrollbar image

  3. Zoom out (e.g. 50%) and you can see that part of last column is behind vertical scrollbar image

Problem can be reproduced in Chrome or Firefox. In IE it works fine.

The problem is that: self.scrollbarWidth = gridUtil.getScrollbarWidth();

is called on initialization only. It has to be also handled when zoom is changed (window resize maybe?). Because scrollbar width may vary depending on zoom level.

Guide contributeur