angular-ui/ui-grid

getScrollbarWidth fails in Firefox under certain conditions

Open

#6937 aperta il 20 feb 2019

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
good first issuegrid-core

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor