Page 1 of 2
Resize Editor?
Posted: Thu May 31, 2018 4:00 pm
by bkay
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!
Re: Resize Editor?
Posted: Thu May 31, 2018 4:15 pm
by toms
bkay wrote:
Is there a setting somewhere that stores the size of all the (various) editors windows?
Not that I'm aware of.
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
Re: Resize Editor?
Posted: Thu May 31, 2018 5:29 pm
by bkay
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)
Re: Resize Editor?
Posted: Thu May 31, 2018 8:44 pm
by toms
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?
No there isn't. The size is calculated by a PHP function and JS.
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);
}
Please tell me if it works for you.
Re: Resize Editor?
Posted: Sat Jun 02, 2018 1:55 am
by admin
.
Re: Resize Editor?
Posted: Wed Jun 06, 2018 1:17 pm
by bkay
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?
Re: Resize Editor?
Posted: Wed Jun 06, 2018 2:05 pm
by toms
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?
I usually open the iframes in a new window anyway so I don't really care about the size.
To do so, I implemented my own menu, which is only visible to the administrator.
https://www.youtube.com/watch?v=XPM-6SgPExA
Re: Resize Editor?
Posted: Wed Jun 06, 2018 4:29 pm
by bkay
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
Re: Resize Editor?
Posted: Wed Jun 06, 2018 5:01 pm
by toms
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).
Yes, that's also true for me with a 23.6" monitor..
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?
You'll find the full source code in my Github repository (just updated):
https://github.com/tomsx/nuBuilderForte ... ickMenu.js
Re: Resize Editor?
Posted: Wed Jun 06, 2018 8:18 pm
by bkay
Awesome. Thanks... works like a charm!
I really appreciate your help!!
