angular-ui/ui-grid

getScrollbarWidth fails in Firefox under certain conditions

Open

#6,937 建立於 2019年2月20日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (2,496 fork)batch import
good first issuegrid-core

倉庫指標

Star
 (5,395 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I have an app where body height is 100vh and children fill the whole height, in this case "outer" element created by getScrollbarWidth is out of browser view port and it seems Firefox doesn't draw any scrollbars in it so inner and outer widths are the same. I'm able to fix it by adding position absolute to the outer style: outer.style.position = 'absolute'; Could somebody publish the fix to the npm, please? Or should I make a pull request?

貢獻者指南