From bd313200778e56bed51bcb118749e181ab49abf5 Mon Sep 17 00:00:00 2001 From: Hunter John Larco Date: Sat, 23 Jan 2016 16:01:58 -0800 Subject: [PATCH] Fixed slider bar overflow issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a slider’s value exceeded its max value that bar overflows outside of the slider. This occurs when the value is programmatically set by listen(). --- src/dat/gui/style.css | 3 ++- src/dat/gui/style.scss | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dat/gui/style.css b/src/dat/gui/style.css index e53790d..df6a7d7 100644 --- a/src/dat/gui/style.css +++ b/src/dat/gui/style.css @@ -271,7 +271,8 @@ color: #fff; } .dg .c .slider { background: #303030; - cursor: ew-resize; } + cursor: ew-resize; + overflow: hidden; } .dg .c .slider-fg { background: #2fa1d6; } .dg .c .slider:hover { diff --git a/src/dat/gui/style.scss b/src/dat/gui/style.scss index 358c65f..e12a952 100644 --- a/src/dat/gui/style.scss +++ b/src/dat/gui/style.scss @@ -184,6 +184,7 @@ $input-color: lighten($background-color, 8.5%); .slider { background: $input-color; cursor: ew-resize; + overflow: hidden; } .slider-fg {