Permalink
Browse files

Qualifies translateX styles.

  • Loading branch information...
Wilto committed Dec 4, 2012
1 parent dc5ba30 commit 1e9b61cee94eb3d867853abcb228c0f2ff2b47fa
Showing with 6 additions and 1 deletion.
  1. +6 −1 js/widgets/panel.js
View
@@ -64,14 +64,19 @@ $.widget( "mobile.panel", $.mobile.widget, {
var o = this.options,
klass = o.classes.panel,
$el = this.element,
- $closeLink = $el.find( "[data-rel=close]" );
+ $closeLink = $el.find( "[data-rel=close]" ),
+ $page = $el.closest( ":jqmData(role='page')" );
+
$el.addClass( klass );
if( $( "." + o.classes.contentWrap ).length === 0 ){
$( ".ui-header, .ui-content, .ui-footer" ).wrapAll( '<div class="' + o.classes.contentWrap + '" />' );
}
if( o.theme ){
$el.addClass( "ui-body-" + o.theme );
}
+
+ $page.addClass( $.support.cssTransform3d ? "ui-panel-transforms" : "ui-panel-positioning" );
+
this._handleLink( "panel" , function( $link , id ){
var options = $.extend( {} , this.options ),
op = {

0 comments on commit 1e9b61c

Please sign in to comment.