Option to stop resizing web page windows.

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
st2000
Posts: 24
Joined: Mon Nov 10, 2008 3:26 pm

Option to stop resizing web page windows.

Post 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
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Now that you mention it, my buttons are often off the bottom of the window as well.
st2000
Posts: 24
Joined: Mon Nov 10, 2008 3:26 pm

Post 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.
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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.
billn77
Posts: 15
Joined: Mon Dec 08, 2008 12:09 am

Post 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.
Post Reply