倉庫指標
- Star
- (5,395 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
Scrollbar width is calculated when grid is initialized via
Steps to reporoduce the bug:
-
Open http://plnkr.co/edit/Jlx891kOcOX39c1t9EpL?p=preview ... so far so good, grid's last column is right near scrollbar

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

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

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.