Home > Uncategorized > JQM Navbar iconpos ignored – fix

JQM Navbar iconpos ignored – fix

I noticed that in Jquery Mobile, the iconpos (icon position) property is ignored, and the icon is always placed at the top.

Here is a two-line javascript fix to this problem:

$(“#contentsNavbar a”).removeClass(“ui-btn-icon-top”);
$(“#contentsNavbar a”).addClass(“ui-btn-icon-left”);

I’ve read that this issue will be fixed in future versions of Jquery Mobile, but In case you don’t want to wait or upgrade, this fix should do.

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment