angular-ui/ui-grid

getScrollbarWidth fails in Firefox under certain conditions

Fermée

#6 937 ouverte le 20 févr. 2019

 (0 commentaire) (0 réaction) (0 personne assignée)JavaScript (2 496 forks)batch import
good first issuegrid-core

Métriques du dépôt

Stars
 (5 395 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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?

Guide contributeur