They work fine but as soon as you put them inside of any grid (ui-grid-a, ui-grid-b, etc) the handle is offset to the right.
- <!DOCTYPE html>
- <html>
- <head>
- <title>SLIDER FAIL</title>
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
- <style type="text/css">
- </style>
- <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
- </head>
- <body>
- <div data-role="page" data-theme="e">
- <div data-role="header">
- <h1>SLIDER FAIL HEADER</h1>
- </div>
- <div data-role="content">
- slider | check
- <br />
- ui-grid | check
- <br />
- slider + ui-grid = the slider handle is offset
- <br />
- <br />
- <div class="ui-grid-a" style="border:1px solid orange;">
- <br />
- <select data-role="slider">
- <option>Cotton</option>
- <option>Candy</option>
- </select>
- <br />
- <br />
- </div>
- <br />
- <div class="ui-grid-a" style="border:1px solid orange;">
- <div class="ui-block-a" style="border:1px solid Black;">
- <select data-role="slider" data-theme="b">
- <option>Trix</option>
- <option>Golden Grahams</option>
- </select>
- </div>
- <div class="ui-block-b" style="border:1px solid Black;">
- <select data-role="slider" data-theme="b">
- <option>Cats</option>
- <option>Dogs</option>
- </select>
- </div>
- </div>
- <br />
- </div>
- <div data-role="footer">
- <h4>SLIDER FAIL FOOTER</h4>
- </div>
- </div>
- </body>
- </html>