]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix input group sizing in Firefox
authorCatalin Zalog <xxxxxcata@yahoo.com>
Sun, 30 Oct 2016 21:43:10 +0000 (23:43 +0200)
committerMark Otto <markd.otto@gmail.com>
Sun, 30 Oct 2016 21:43:10 +0000 (14:43 -0700)
Firefox requires a width and flex-basis value to size the input field correctly. Despite the width being 1%, the input will size correctly at all parent widths.

http://codepen.io/zalog/pen/bpMJmv

scss/_input-group.scss

index 7eef23a9dd0955dc48da21531cd07e7ed1f9512d..17b9c84020e33636620dcc701c9f943624b4ae9c 100644 (file)
     }
 
     @if $enable-flex {
-      flex: 1;
+      flex: 1 1 auto;
+      // Add width 1% and flex-basis auto to ensure that button will not wrap out
+      // the column. Applies to IE Edge+ and Firefox. Chrome do not require this.
+      width: 1%;
     } @else {
       // IE9 fubars the placeholder attribute in text inputs and the arrows on
       // select elements in input groups. To fix it, we float the input. Details: