Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Error msg too far to the right
-
- Posts: 30
- Joined: Fri Nov 09, 2018 5:42 pm
Error msg too far to the right
Hi,
The messagebox is displayed too far to the right, outside the visible area. Only if you scroll to the right, you will see the error message.
The messagebox is displayed too far to the right, outside the visible area. Only if you scroll to the right, you will see the error message.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 30
- Joined: Fri Nov 09, 2018 5:42 pm
Re: Error msg too far to the right
Is anyone experiencing the same issue or is my installation corrupt?
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Error msg too far to the right
Hi,
If you refer to the nuMessage you can change default location for example in the following way:
in ./nuform.js
find the line and disable it:
and add/replace with:
If you refer to the nuMessage you can change default location for example in the following way:
in ./nuform.js
find the line and disable it:
Code: Select all
//$('body', par).append("<div id='nuMessageDiv' class='nuMessage' style='overflow:hidden;width:" + widest + "px;left:" + l + "px' ></div>")
Code: Select all
$('body', par).append("<div id='nuMessageDiv' class='nuMessage' style='position:fixed; overflow:hidden;width:" + widest + "px;top:55px; left:10px' ></div>")
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Error msg too far to the right
Hi guys,
You could try my fix. It centers the message over the current window/iFrame/popup. It also takes into account the current horizontal scrolling position to ensure visibility.
https://github.com/smalos/nuBuilder4-Bu ... osition.md
You could try my fix. It centers the message over the current window/iFrame/popup. It also takes into account the current horizontal scrolling position to ensure visibility.
https://github.com/smalos/nuBuilder4-Bu ... osition.md
Re: Error msg too far to the right
Janusz,
I have added your changes to Github.
Thanks
(Please test it.)
Steven
I have added your changes to Github.
Thanks
(Please test it.)
Steven
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Error msg too far to the right
Hi Steven
The Patch doesn't work well for me in all situations. E.g. if the scrollbar position > 0 .
Apart from that, I find a centered message box more aesthetic (IMHO) and it's standard to do so.
BTW, Janusz confirmed that my Patch works well for him too.
The Patch doesn't work well for me in all situations. E.g. if the scrollbar position > 0 .
Apart from that, I find a centered message box more aesthetic (IMHO) and it's standard to do so.
BTW, Janusz confirmed that my Patch works well for him too.
You do not have the required permissions to view the files attached to this post.
Last edited by kev1n on Tue Aug 11, 2020 7:59 am, edited 1 time in total.
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Error msg too far to the right
Hi Steven,
To confirm - the implemented patch works well - it position the message on the left - so it's always visible.
And to confirm as well that I tested with Kevin his proposal - which works fine - and centers the message in the middle of the active window/iframe - if the message is wider than the window and goes to much on left (so it would be partially not readable) then it's placed on the left as in my proposal.
To confirm - the implemented patch works well - it position the message on the left - so it's always visible.
And to confirm as well that I tested with Kevin his proposal - which works fine - and centers the message in the middle of the active window/iframe - if the message is wider than the window and goes to much on left (so it would be partially not readable) then it's placed on the left as in my proposal.
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Error msg too far to the right
Steven,
In other words, the message is too far to the left now. Can you use my code or is there an issue with it? Please let me know. Thanks.
In other words, the message is too far to the left now. Can you use my code or is there an issue with it? Please let me know. Thanks.