Hi,
Is there a trick to getting the entire editor to appear? Seems I can't resize it, and it's always too small (having to use scroll-bars continuously is a real PITA).
Is there a setting somewhere that stores the size of all the (various) editors windows?
Thanks!
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.
Resize Editor?
-
- Posts: 9
- Joined: Mon May 28, 2018 2:02 pm
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Resize Editor?
Not that I'm aware of.bkay wrote: Is there a setting somewhere that stores the size of all the (various) editors windows?
Double clicking the title bar of the window (iframe), will maximize it.
This is how I enlarge the script text areas because they're way too small for me, too:
https://www.youtube.com/watch?v=Bj8HzwIxJsQ
-
- Posts: 9
- Joined: Mon May 28, 2018 2:02 pm
Re: Resize Editor?
Thanks, I guess I'll be double-clicking then!
However, I can't help but ask, isn't there a place in the nuBuilder source-code where the iframe size is declared for each editor form?
(I've done a search, to no avail)

However, I can't help but ask, isn't there a place in the nuBuilder source-code where the iframe size is declared for each editor form?
(I've done a search, to no avail)
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Resize Editor?
No there isn't. The size is calculated by a PHP function and JS.bkay wrote: However, I can't help but ask, isn't there a place in the nuBuilder source-code where the iframe size is declared for each editor form?
But you can try my resizeIframe() function that resizes all iframes by a specified value.
The JS is to be placed in Home ► Setup ► Header:
Code: Select all
function resizeIframe(incH, incW) {
if (window.location != window.parent.location) {
$('body').css('height', $('body').height() + incH);
var dd = $('#nuDragDialog', window.parent.document);
dd.css({
'height': (dd.height() + incH) + 'px',
'width': (dd.width() + incW) + 'px',
});
nw = $('#nuWindow', window.parent.document);
nw.css({
'height': (nw.height() + incH) + 'px',
'width': (nw.width() + incW) + 'px'
});
}
}
function nuOnLoad() {
resizeIframe(30, 30);
}
-
- Posts: 9
- Joined: Mon May 28, 2018 2:02 pm
Re: Resize Editor?
Thank you!
I've finally had a chance to implement this...
I set it like below, and it seems to have done the trick.
function nuOnLoad() {
resizeIframe(300, 300);
}
Much appreciated...!
I can't help but ask... why not just set the iframe for these editor forms to MAXimum, and be done with it?
I've finally had a chance to implement this...
I set it like below, and it seems to have done the trick.
function nuOnLoad() {
resizeIframe(300, 300);
}
Much appreciated...!
I can't help but ask... why not just set the iframe for these editor forms to MAXimum, and be done with it?
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Resize Editor?
I usually open the iframes in a new window anyway so I don't really care about the size.bkay wrote: I can't help but ask... why not just set the iframe for these editor forms to MAXimum, and be done with it?
To do so, I implemented my own menu, which is only visible to the administrator.
https://www.youtube.com/watch?v=XPM-6SgPExA
-
- Posts: 9
- Joined: Mon May 28, 2018 2:02 pm
Re: Resize Editor?
Oh wow. That's a much better solution!
...and I was just starting to get frustrated with having to go to the far right of the screen for the options menu, then far left to close and save. (Lots of mouse-miles, lol).
I've done a quick search for "Quick Menu" or "add menu" in the forums, and can't find anything about how you may have added that menu to the "Home" area.
Is that a technique you can share with us newbies?
(PS - After 6hrs of trial and error editing a browse and edit form, I just got my first LEFT OUTER JOIN to HALF work (it displays in main page), so I'm stoked!
)
Thanks again!
Bill
...and I was just starting to get frustrated with having to go to the far right of the screen for the options menu, then far left to close and save. (Lots of mouse-miles, lol).
I've done a quick search for "Quick Menu" or "add menu" in the forums, and can't find anything about how you may have added that menu to the "Home" area.
Is that a technique you can share with us newbies?
(PS - After 6hrs of trial and error editing a browse and edit form, I just got my first LEFT OUTER JOIN to HALF work (it displays in main page), so I'm stoked!

Thanks again!
Bill
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Resize Editor?
Yes, that's also true for me with a 23.6" monitor..bkay wrote: ...and I was just starting to get frustrated with having to go to the far right of the screen for the options menu, then far left to close and save. (Lots of mouse-miles, lol).
You'll find the full source code in my Github repository (just updated):bkay wrote:I've done a quick search for "Quick Menu" or "add menu" in the forums, and can't find anything about how you may have added that menu to the "Home" area.
Is that a technique you can share with us newbies?
https://github.com/tomsx/nuBuilderForte ... ickMenu.js
-
- Posts: 9
- Joined: Mon May 28, 2018 2:02 pm