In JQM navbar the right margin for the right most nav bar element is not visible. Fixes JQM Issue #4190.
Fixes Issue #4190 (navbar's right most elements border not visible).
Have you tested this fix in IE 7-9? Think that the borders may cause the navbar to wrap.
Oh! Not tested in IE. Only in Chrome.
When you're gonna test you won't see a border in IE7 and IE8.... they don't support :last-child selector.
The navbar will be wrapped in IE7 at certain window widths but that's another issue (#2270).
BTW - This PR #4038 fixes the line above the one that kadaj added where the :last-child selector is on .ui-btn instead of li
Right. It does not work in IE 6, 7 and 8. Works in IE 9, Chrome, Opera and Firefox. Damn IE.
Right. The navbar wraps. But that is not caused by this change like mentioned. So this fix does not cause any issues in IE 7 or 8. For IE 7 and 8 they will see like it is now. For rest of the browsers, it will work.
Another issue caused by this change is, that if a navbar wraps to multiline, only the very last button gets a border.
Also, if the last button (single or multiline navbar) gets a data-theme, the right border is missing again.