Grouped buttons inside toolbar result in broken layout
The following markup results in a broken layout (tested FF 3.6.15 and Chrome 9.0.597.98):
- <div data-role="page" id="thread">
- <div data-role="header" data-backbtn="false">
- <a id="backToBoard" data-direction="reverse" data-icon="arrow-l" data-iconpos="notext">Back</a>
- <h1 id="threadTitle">Title</h1>
- <div data-role="controlgroup" data-type="horizontal">
- <a id="refreshButton" data-icon="refresh" data-theme="b" data-iconpos="notext" data-role="button">Refresh</a>
- <a id="actionsButton" data-icon="grid" data-theme="a" data-iconpos="notext" data-rel="dialog" data-role="button">Actions</a>
- </div>
- </div>
- <div data-role="content">
- CONTENT
- </div>
- </div>
As a workaround, you can write:
- <div data-role="header" data-backbtn="false">
- <div data-role="controlgroup" data-type="horizontal" style="float: right; margin: 5px">
- <a id="refreshButton" data-icon="refresh" data-theme="b" data-iconpos="notext" data-role="button">Refresh</a>
- <a id="actionsButton" data-icon="grid" data-theme="a" data-iconpos="notext" data-rel="dialog" data-role="button">Actions</a>
- </div>
- <a id="backToBoard" data-direction="reverse" data-icon="arrow-l" data-iconpos="notext">Back</a>
- <h1 id="threadTitle">Title</h1>
- </div>
However, it should work without that workaround.
Cheers
winSharp93