Key classes not assigned with ASP.NET Web Forms.
It seems since about v.1.0.1 that the html
.ui-mobile, body
.ui-mobile-viewport and body
.ui-overlay-x CSS classes aren't being applied if the content is wrapped in a <form> element. Anyone else experiencing this?
I would just remove the form element, however, it's required for using certain .NET controls on the page.
EDIT:
Actually, it appears the body classes are being applied to the <form>, not the <body>. I see that you can specify a pageContainer property in the changePage and loadPage events, however, I need this to ALWAYS apply the body element. I was able to fix it in the latest alpha (1.2.0) by updating line 8942 from:
- $.mobile.pageContainer = $pages.first().parent().addClass( "ui-mobile-viewport" );
To:
- $.mobile.pageContainer = $pages.first().parents('body').addClass( "ui-mobile-viewport" );