Skip to content

Commit b654e02

Browse files
committed
fix(header): Header input too long on Android 4.2, closes #1081
1 parent cb1a5f6 commit b654e02

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: scss/_bar.scss

+2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959

6060
input {
6161
padding-left: 8px;
62+
width: 94%;
6263
height: 28px;
64+
background: transparent;
6365
}
6466
}
6567
}

Diff for: test/html/search-ios7.html

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<title>Search</title>
55
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
66
<link href="../../dist/css/ionic.css" rel="stylesheet">
7+
<style>
8+
.bar {
9+
position: relative;
10+
top: 0;
11+
}
12+
</style>
713
</head>
814
<body class="platform-ios7">
915

@@ -19,6 +25,16 @@
1925
</button>
2026
</header>
2127

28+
<div class="bar bar-header item-input-inset">
29+
<label class="item-input-wrapper">
30+
<i class="icon ion-ios7-search placeholder-icon"></i>
31+
<input type="search" placeholder="Search">
32+
</label>
33+
<button class="button button-clear">
34+
取消
35+
</button>
36+
</div>
37+
2238
</section>
2339

2440
</body>

0 commit comments

Comments
 (0)