navbar ul breaking in IE7 #2270
Comments
Do the other grids (2,3,4) break or just the 5 column? |
Sorry for the late reply. On my IE7 the 2,5 and 10 button navbars are breaking. See here: 2 grid breaking in IE7 Since 1px seems to be the problem I looked at the borders. JQM assigns the link element (ui-btn-up-theme) a border of 1px solid and clears border-top/bottom/right-width: 0px. So only border-left-width:1px left. I don't know, but I think omitting this border on the first navbar list item won't hurt, so that should make it work. |
I've come across this issue as well, in IE8. It also happens in blackberry OS5. In my case I had a two-grid navbar, and fixed it by manually setting the width of one grid to 49.9% - fixes in both BB5 and IE8. setting it to 49.999% fixes it in IE8. |
I don't know if this is the cause, but look at this page Check IE and another browser. IE adds 1px between the 2nd and 3rd button. Can't say if it's a border or margin but it's also there after removing buttons active and persistent classes and CSS-setting: |
IE7 and older versions have an issue with percentage widths. While other browsers and newer IE versions have solutions to prevent breaking, IE7 simply rounds up. |
Will do. Tomorrow. |
@uGoMobi: Awesome! Great work! |
…cks percentage width to prevent wrapping on older browsers and set it back for modern browsers. Minor adjustment for grid-a to fix BB5 issue.
On my netbook IE7 the navbar from your JQM docs breaks. See example.
I have been playing around with the CSS. If you set the 5 button list item width to almost 20% like so
.ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width: 19.99999999999%; }
it works.
I guess 19.99% would suffice... :-) should I commit this?
The text was updated successfully, but these errors were encountered: