]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Fix chrome weird render bug, close #9
authorafc163 <afc163@gmail.com>
Fri, 11 Dec 2015 12:12:10 +0000 (20:12 +0800)
committerafc163 <afc163@gmail.com>
Fri, 11 Dec 2015 12:12:10 +0000 (20:12 +0800)
assets/index/Picker.less
assets/index/Select.less

index 76bf834acd5633d966d8971d6de80aaeb16d286f..bc7deb59f15f4f204c0ecd08f919cf8204fb8c76 100644 (file)
@@ -1,6 +1,6 @@
 .@{prefixClass} {
   &-input {
-    width: 100%;
+    width: 150px;
     position: relative;
     display: inline-block;
     padding: 4px 7px;
index bca25f99083f40e3e94883f3aca15bed396086f7..3e94c11b58479649d56bb680b2257413a9ed8f8f 100644 (file)
@@ -7,6 +7,7 @@
   box-sizing: border-box;
   width: 56px;
   overflow: hidden;
+  position: relative; // Fix chrome weird render bug
 
   &:hover {
     overflow-y: auto;
@@ -32,7 +33,7 @@
 
   li {
     list-style: none;
-    box-sizing: border-box;
+    box-sizing: content-box;
     margin: 0;
     padding: 0 0 0 16px;
     width: 100%;