Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: Bootstrap navbar-right elements position

Home Forums Older releases 1.0.x + Bootstrap addon Bootstrap navbar-right elements position Reply To: Bootstrap navbar-right elements position

#2791
admin
Keymaster

Ah, yes, there seems to be an issue in “jquery.smartmenus.bootstrap.js” since Bootstrap doesn’t support RTL navbars natively so this has not been a tested case. Anyway, just find the following:

	// fix collapsible menu detection for Bootstrap 3
	$.SmartMenus.prototype.isCollapsible = function() {
		return this.$firstLink.parent().css('float') != 'left';
	};

and replace it with the following:

	// fix collapsible menu detection for Bootstrap 3
	$.SmartMenus.prototype.isCollapsible = function() {
		return !/^(left|right)$/.test(this.$firstLink.parent().css('float'));
	};

and it should work fine. This will be fixed in the next release.

Please let me know if you still have any troubles.

Cheers!