Rename util.scrollBarWidth()
This commit is contained in:
parent
9d5707dd3c
commit
80efb750f9
3 changed files with 24 additions and 24 deletions
|
@ -25,7 +25,7 @@ export function stringWidth(str, font) {
|
|||
return ctx.measureText(str).width;
|
||||
}
|
||||
|
||||
export function scrollBarWidth() {
|
||||
export function measureScrollBarWidth() {
|
||||
const outer = document.createElement('div');
|
||||
outer.style.visibility = 'hidden';
|
||||
outer.style.width = '100px';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue