Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 0479daa

Browse files
Listview: Provide class ui-li-thumb to position elements other than img. Deprecate ui-li-has-icon. Fixes #6321.
1 parent 1524ea1 commit 0479daa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

css/structure/jquery.mobile.listview.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
min-height: 3.625em;
128128
padding-left: 6.25em;
129129
}
130+
/* ui-li-has-icon deprecated in 1.4. TODO: remove in 1.5 */
130131
.ui-listview .ui-li-has-icon > .ui-btn,
131132
.ui-listview .ui-li-static.ui-li-has-icon {
132133
min-height: 1.25em;
@@ -152,13 +153,15 @@
152153
right: 3.636em;
153154
}
154155
.ui-listview .ui-li-has-thumb > img:first-child,
155-
.ui-listview .ui-li-has-thumb > .ui-btn > img:first-child {
156+
.ui-listview .ui-li-has-thumb > .ui-btn > img:first-child,
157+
.ui-listview .ui-li-has-thumb .ui-li-thumb {
156158
position: absolute;
157159
left: 0;
158160
top: 0;
159161
max-height: 5em;
160162
max-width: 5em;
161163
}
164+
/* ui-li-has-icon deprecated in 1.4. TODO: remove in 1.5 */
162165
.ui-listview .ui-li-has-icon > img:first-child,
163166
.ui-listview .ui-li-has-icon > .ui-btn > img:first-child {
164167
position: absolute;

0 commit comments

Comments
 (0)