jquery/jquery-mobile — pull request #4291 by uGoMobi (2012-05-04 13:27:25+00:00)
Title: Fixes #3998 - All buttons, regardless of markup, should be mini by default in toolbars

Issue: Buttons with <button> as markup do not default to mini in header and footer.
Cause: The button widget sets mini by default to false. The buttonMarkup function provides in an option to control the styling of buttons in headers/footer; when mini is set to false ui-fullsize class is the added and the default mini style won't apply.
Fix: Removed default from button widget in forms.button.js

Additional 1:
The same goes for inline style. When set to false the class ui-btn-block is added and the default inline style won't apply.
Issues: There are no rules for .ui-header/footer .ui-btn-block in the CSS so this doesn't work at all. The button widget also sets inline by default to false.
Fix: Added ui-btn-block rules to button.css and removed default from button widget in form.button.js

Additional 2:
Issue: When data-role="button" is added to a <button> element the buttonMarkup function will be initialized by the element itself as well as the button widget which results in a button wrapped in another button.
Fix: excluded <button> element from auto initialization in buttonMarkup.js

Passed all unit tests. Live test page: http://ugomobi.github.com/toolbar-button/

This PR fixes #3998