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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: