Merge pull request #2470 from matrix-org/bwindels/css-scrollbars
Make native scrollbars prettier
This commit is contained in:
commit
cc2b6f9524
5 changed files with 27 additions and 3 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue