Page 1 of 1

Please help to fix header on smartphones

Posted: Tue May 24, 2022 3:58 pm
by selector
The form hides the header.
header_trouble.jpg

Re: Please help to fix header on smartphones

Posted: Tue May 24, 2022 4:28 pm
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');
}

Re: Please help to fix header on smartphones

Posted: Wed May 25, 2022 7:08 am
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.

Re: Please help to fix header on smartphones

Posted: Sun Jun 05, 2022 4:10 pm
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

Re: Please help to fix header on smartphones

Posted: Mon Jun 06, 2022 3:51 pm
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.

Re: Please help to fix header on smartphones

Posted: Wed Jun 08, 2022 9:19 am
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.