Merge pull request #2470 from matrix-org/bwindels/css-scrollbars

Make native scrollbars prettier
This commit is contained in:
Bruno Windels 2019-01-29 08:20:21 +00:00 committed by GitHub
commit cc2b6f9524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 3 deletions

View file

@ -20,6 +20,7 @@ import React from "react";
// Copyright (c) Noel Delgado <pixelia.me@gmail.com> (pixelia.me)
function getScrollbarWidth(alternativeOverflow) {
const div = document.createElement('div');
div.className = 'mx_AutoHideScrollbar'; //to get width of css scrollbar
div.style.position = 'absolute';
div.style.top = '-9999px';
div.style.width = '100px';