Welcome to the nuBuilder Forums!

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

Please help to fix header on smartphones

Questions related to using nuBuilder Forte.
Post Reply
selector
Posts: 41
Joined: Tue Feb 22, 2022 1:55 pm
Has thanked: 9 times

Please help to fix header on smartphones

Unread post by selector »

The form hides the header.
header_trouble.jpg
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Please help to fix header on smartphones

Unread post by kev1n »

Hi,

Try increasing the height of nuActionHolder by adding this code in under Setup->Header:

Code: Select all

if (nuIsMobile()) {
    $('#nuActionHolder').css('height','80px');
}
selector
Posts: 41
Joined: Tue Feb 22, 2022 1:55 pm
Has thanked: 9 times

Re: Please help to fix header on smartphones

Unread post by selector »

kev1n wrote: Tue May 24, 2022 4:28 pm
Thank you very much. Its working. And thanks for nuIsMobile() - I have tried media queries, but this method is better. I wish I had complete api documentation.

The only question is how to write this code for all forms at once. Because if you put the code in the settings, it doesn't work. It only works if you write it for a specific form.
selector
Posts: 41
Joined: Tue Feb 22, 2022 1:55 pm
Has thanked: 9 times

Re: Please help to fix header on smartphones

Unread post by selector »

kev1n wrote: Tue May 24, 2022 4:28 pm Hi,

Try increasing the height of nuActionHolder by adding this code in under Setup->Header:

Code: Select all

if (nuIsMobile()) {
    $('#nuActionHolder').css('height','80px');
}
Kevin, There is an inconvenience.
When I increase the height of the title, scrollbars appear in popup windows. Can you tell me how to fix it? Thank you for your time.
Безымянный.png
Also, can you tell me where I can remove the indent from the left edge of such forms?
position.jpg
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Please help to fix header on smartphones

Unread post by kev1n »

The margin can be removed by replacing

Code: Select all

window.nuDialog.createDialog(50, 25, 50, 50, '');
with

Code: Select all

window.nuDialog.createDialog(0, 25, 50, 50, '');
in nucommon.js / in function nuBuildLookup()

Edit: There's now an updated https://github.com/nuBuilder/nuBuilder-4.5/blob/master/core/nucommon.js at Github.
selector
Posts: 41
Joined: Tue Feb 22, 2022 1:55 pm
Has thanked: 9 times

Re: Please help to fix header on smartphones

Unread post by selector »

kev1n wrote: Mon Jun 06, 2022 3:51 pm There's now an updated https://github.com/nuBuilder/nuBuilder-4.5/blob/master/core/nucommon.js at Github.
I have updated nubuilder. It got better. Thanks.
Post Reply