Browse Source

fix glitch after click on switch with form-control class #318

LostCrew 11 years ago
parent
commit
3ebdecaf4c

+ 4 - 0
dist/css/bootstrap2/bootstrap-switch.css

@@ -495,3 +495,7 @@
   filter: alpha(opacity=0);
   z-index: -1;
 }
+.bootstrap-switch input[type='radio'].form-control,
+.bootstrap-switch input[type='checkbox'].form-control {
+  height: auto;
+}

File diff suppressed because it is too large
+ 0 - 0
dist/css/bootstrap2/bootstrap-switch.min.css


+ 4 - 0
dist/css/bootstrap3/bootstrap-switch.css

@@ -200,3 +200,7 @@
   filter: alpha(opacity=0);
   z-index: -1;
 }
+.bootstrap-switch input[type='radio'].form-control,
+.bootstrap-switch input[type='checkbox'].form-control {
+  height: auto;
+}

File diff suppressed because it is too large
+ 0 - 0
dist/css/bootstrap3/bootstrap-switch.min.css


+ 4 - 0
src/less/bootstrap2/bootstrap-switch.less

@@ -188,5 +188,9 @@
     left: 0;
     .opacity(0);
     z-index: -1;
+
+    &.form-control {
+      height: auto;
+    }
   }
 }

+ 4 - 0
src/less/bootstrap3/bootstrap-switch.less

@@ -193,5 +193,9 @@
     left: 0;
     .opacity(0);
     z-index: -1;
+
+    &.form-control {
+      height: auto;
+    }
   }
 }

Some files were not shown because too many files changed in this diff