Skip to content

Commit

Permalink
fix picker在字号改变时而导致不对齐的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bearyan committed Feb 28, 2017
1 parent 66510ff commit e1ed3c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/style/widget/weui-picker/weui-picker.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "../../base/fn";

@pickerItemHeight: 34px;
.weui-picker {
position: fixed;
width: 100%;
Expand Down Expand Up @@ -68,7 +69,7 @@

.weui-picker__indicator {
width: 100%;
height: 34px;
height: @pickerItemHeight;
position: absolute;
left: 0;
top: 102px;
Expand All @@ -89,7 +90,9 @@
}

.weui-picker__item {
padding: 5px 0 4px;
padding: 0;
height: @pickerItemHeight;
line-height: @pickerItemHeight;
text-align: center;
color: #000;
text-overflow: ellipsis;
Expand Down

0 comments on commit e1ed3c1

Please sign in to comment.