Page 1 of 1
Option to stop resizing web page windows.
Posted: Mon Dec 15, 2008 5:22 pm
by st2000
Hi...
Searching for this results in a lot of hits, but I think they are for resizing the video.
What I would like to see (unless I have missed it) is a way to disable the automatic resizing of ZM web page windows. Perhaps it's because I use firefox, or Fedora or a different font ... but ZM windows continuously pop up with key buttons off window and no scroll bars to get to these key buttons. It makes for a rather aggravating experience.
And now that many web browsers support tabs, resizing the browser window makes for jumping between tabs (i.e. from the google tab to the ZM tab) unusable after visiting your own ZM server.
...thanks
Posted: Mon Dec 15, 2008 5:30 pm
by Lee Sharp
Now that you mention it, my buttons are often off the bottom of the window as well.
Posted: Mon Dec 15, 2008 5:32 pm
by st2000
Apparently there is a way to stop the resizing of the console ZM window. That helps with the TAB problem above. But what about the rest of the windows. For example, I didn't even see the option to stop resizing the console window unless I expanded the options window large enough to see where I could change the console window's resizing option.
Posted: Mon Dec 15, 2008 6:30 pm
by coke
It's not the permanent solution, but if you're using FF2 or 3 a ctrl-mousewheel zoom in the window should work for you.
Posted: Sun Feb 15, 2009 4:30 pm
by billn77
This had been bugging me too. Here's what I've found. This is not ideal because my popups seem to be fine in everything but my Ubuntu Firefox. I was wasting so much time dragging my windows bigger that it was worth doing this, it makes it slightly inconvenient when using a different browser.
The width and height settings which are sent to the newWindow javascript command are set in /usr/share/zoneminder/zm_html_config.php. You'll need your root access to modify this. Toward the bottom of the file are the settings for "Javascript window sizes". You can figure out the lines for the different popup links. Some are the direct window sizes, some are inputs which obviously get modified elsewhere to get the final window sizes. I just tried different setting until they worked. Obviously, back up the original in case you want to revert, or include the original values in a comment (//200,90 for example) at the end of the line your modding.
bandwidth set to 200, 150
events set to 900,600
function set to 248, 150
monitor set to 500, 550
options set to 1000, 750
watch = 200, 600 (was 96,384. This one is different because it looks like this number is just a starting point, something in the code elsewhere adds more onto each of these numbers, it ends up being 520x840 with these new numbers)
You could also modify montage, which is another funny one, I think the values are actually the space between images, but I left it alone for the sake of viewing remotely on my phone.
Be sure to reload your browser window after modifying this file.