From 00a2c3ecf07e71a141b9709d8e6ee1f569c9dd54 Mon Sep 17 00:00:00 2001 From: Evgeny Boger Date: Sat, 7 Nov 2015 03:29:34 +0300 Subject: [PATCH] Workaround for https://code.google.com/p/chromium/issues/detail?id=527709 (overflow:hidden results in erroneous behaviour when used within CSS columns with position:relative) --- angular-toggle-switch.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/angular-toggle-switch.css b/angular-toggle-switch.css index 9a430ab..0512d01 100644 --- a/angular-toggle-switch.css +++ b/angular-toggle-switch.css @@ -30,8 +30,8 @@ } .toggle-switch > div { - position: relative; width: 150%; + } .toggle-switch .knob { @@ -48,7 +48,7 @@ } .toggle-switch .switch-off { - left: -50% + margin-left: -50%; } .toggle-switch .switch-left, .toggle-switch .switch-right { @@ -66,8 +66,8 @@ } .toggle-switch-animate { - transition: left 0.5s; - -o-transition: left 0.5s; - -moz-transition: left 0.5s; - -webkit-transition: left 0.5s; + transition: margin-left 0.5s; + -o-transition: margin-left 0.5s; + -moz-transition: margin-left 0.5s; + -webkit-transition: margin-left 0.5s; }