Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Vertical tabs error

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
mariri
Posts: 45
Joined: Mon Sep 02, 2019 11:54 am

Vertical tabs error

Unread post by mariri »

Hi guys !

When I use the 'nuSetVerticalTabs()' Javascript procedure in any form with the latest version of NuBuilder, I have a problem with the first tab : an HTML code appears instead of the tab title.
Does anyone else have the same problem ?

Thanks for ur help !
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Vertical tabs error

Unread post by kev1n »

Here's a fix:

Add this function in the Header (under Setup) and login again into nuBuilder.

Code: Select all

function nuSetVerticalTabs(){
	
	$('#nuTabHolder').css('display', 'inline-block');
	$('.nuTab').css('display', 'block');
	$('#nuRecord').css('display', 'inline-block');
	$('.nuTab').css('padding', '8px 2px 0px 2px');
	$('#nuTabHolder').css('height', window.innerHeight)

	var w   = 0;

	$('.nuTab').each(function( index ) {
		$(this).html('   ' + $(this).html());
		w   = Math.max(w, nuGetWordWidth($(this).html()));

	});

	$('#nuTabHolder').css('width', w + 30);
	$('.nuTab').css('width', w + 30);

}
mariri
Posts: 45
Joined: Mon Sep 02, 2019 11:54 am

Re: Vertical tabs error

Unread post by mariri »

Ok it works ! Thanks :P
admin
Site Admin
Posts: 2822
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Vertical tabs error

Unread post by admin »

kev1n,

I have added your changes to nuBuilder.

Thanks again.


Steven
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Vertical tabs error

Unread post by kev1n »

Thanks Steven
admin
Site Admin
Posts: 2822
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Vertical tabs error

Unread post by admin »

.
Post Reply