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

Commit 3650c85

Browse files
Fieldcontain: No class ui-body for fieldcontain. Deprecated data-role="fieldcontain". Add class ui-field-contain instead.
1 parent e796a91 commit 3650c85

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

css/structure/jquery.mobile.forms.fieldcontain.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.ui-field-contain,
22
.ui-mobile fieldset.ui-field-contain {
3+
display: block;
4+
position: relative;
35
overflow: visible;
6+
clear: both;
47
padding: .8em 0;
58
}
69
.ui-field-contain > label + [class*="ui-"],

js/jquery.mobile.fieldContain.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ define( [ "jquery", "jquery.mobile.registry" ], function( jQuery ) {
99
//>>excludeEnd("jqmBuildExclude");
1010
(function( $, undefined ) {
1111

12+
// Deprecated in 1.4
1213
$.fn.fieldcontain = function(/* options */) {
13-
return this.addClass( "ui-field-contain ui-body" );
14+
return this.addClass( "ui-field-contain" );
1415
};
1516

1617
//auto self-init widgets

0 commit comments

Comments
 (0)