From 0abfc4d1ba4c88cb2d6b779477a0307e3241c103 Mon Sep 17 00:00:00 2001 From: Minwe Date: Wed, 13 May 2015 10:45:24 +0800 Subject: [PATCH] [new] add scrollbar width measure helper class --- docs/javascript/modal.md | 2 +- less/base.less | 9 +++++++++ less/ui.popover.less | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/javascript/modal.md b/docs/javascript/modal.md index 6aa7cb9be..01ccda9ac 100644 --- a/docs/javascript/modal.md +++ b/docs/javascript/modal.md @@ -300,7 +300,7 @@ $(function() { ### Modal Loading -采纳 +采纳网友意见,Loading 窗口只能通过 JS 关闭。 `````html diff --git a/less/base.less b/less/base.less index cf9594950..4695321a8 100644 --- a/less/base.less +++ b/less/base.less @@ -798,6 +798,15 @@ select { */ +// Scrollbar measure help class +.@{ns}scrollbar-measure { + width: 100px; + height: 100px; + overflow: scroll; + position: absolute; + top: -9999px; +} + // Base Hooks .hook-base-body() {} diff --git a/less/ui.popover.less b/less/ui.popover.less index 1928401a1..d7addd399 100644 --- a/less/ui.popover.less +++ b/less/ui.popover.less @@ -137,7 +137,7 @@ } }; -.@{ns}popover-secondary { +.@{ns}popover-primary { .popover-color-variant(@global-primary); }