1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-22 04:02:40 +03:00

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
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';