Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Move the labeling of the field?

Questions related to using nuBuilder Forte.
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Move the labeling of the field?

Unread post by kev1n »

That Width is just for the object (input) and not the label.

Increase the label width in custFieldLabelsOnTop():

Code: Select all

function custFieldLabelsOnTop(f, e) {
    for (var i = 0; i < f.length; i++) {
        if (jQuery.inArray(f[i], e) == -1) {

            var t = $('#' + f[i]).cssNumber("top");
            var l = $('#' + f[i]).cssNumber("left");
            var w = $('#' + f[i]).cssNumber("width");
            $('#' + 'label_' + f[i]).css({
                'top': t - 18,
                'left': l - 15,
                'width': w + 50,
                'font-weight': 'bold',
                'font-size': '24px',
                'text-align': 'left'
            });
        }
    }
}
Post Reply