Why are the pop-up windows always undersized?

Moderator: crythias

Locked
KimmoJ
Znuny newbie
Posts: 47
Joined: 15 Sep 2011, 09:32
Znuny Version: 6.0.22
Real Name: Kimmo Jaskari
Company: Transmar Ab

Why are the pop-up windows always undersized?

Post by KimmoJ »

I wonder if anyone could offer some hint on an annoyance I keep seeing. Whenever you go to reply to a ticket, a window pops up with the text editing field. This window is always too small. You have to scroll manually until you can even see the controls to choose whether to leave it open or mark it closed, as well as the submit button.

If you go through enough tickets, that's years of your life (gross exaggeration alert! :) ) spent on just scrolling down to the submit button. Is the size of that window an adjustable somehow? Could one force it to create maximized windows perhaps?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Why are the pop-up windows always undersized?

Post by jojo »

Please create a bug report (http://bugs.otrs.org)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
KimmoJ
Znuny newbie
Posts: 47
Joined: 15 Sep 2011, 09:32
Znuny Version: 6.0.22
Real Name: Kimmo Jaskari
Company: Transmar Ab

Re: Why are the pop-up windows always undersized?

Post by KimmoJ »

Will do. I was just wondering if there was some setting or way to tune that with ease that I just hadn't noticed among the bazillion :) settings in the sysconfig. Thanks.

Edit: there was a pre-existing bug report that was identical to what I was planning to add so added myself to the cc for it. Thanks.
bin
Znuny newbie
Posts: 29
Joined: 06 Jan 2011, 10:29
Znuny Version: 3

Re: Why are the pop-up windows always undersized?

Post by bin »

Hi

from a post by mothra 08 Dec 2010, 12:44
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"Default pop up window size"

The default window size is defined in $OTRS_HOME/var/httpd/htdocs/js/Core.UI.Popup.js. Just add a new Popup Profile in there with your desired settings and then restart OTRS.

Now, wherever you want to implement this (and it's most likely going to be in a DTL that you have customised in a theme), make sure the 3rd parameter passed into Core.UI.Popup.OpenPopup() is the name of your new profile.

EDIT: A caveat to this is that when you update OTRS, Core.UI.Popup.js will probably be overwritten and you will lose your custom popup profile.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I set mine to 860 - default is 700- but it does depend on the screen resolution, I'm in 1600x1200 so YMMV

bin
KimmoJ
Znuny newbie
Posts: 47
Joined: 15 Sep 2011, 09:32
Znuny Version: 6.0.22
Real Name: Kimmo Jaskari
Company: Transmar Ab

Re: Why are the pop-up windows always undersized?

Post by KimmoJ »

Thank you! Going to have to give that a whirl right away and hope that the next generation of OTRS does some serious work on the reply window in general. It wastes space a lot and is a bit kludgy to use in general. More Ajax needed! :)

Edit: worked beautifully. It's amazing what such a tiny hack can do to improve usability.
WebChamp
Znuny newbie
Posts: 17
Joined: 24 Nov 2011, 16:09
Znuny Version: 3.0.10
Real Name: Richard Pieterse

Re: Why are the pop-up windows always undersized?

Post by WebChamp »

This post was exactly what I needed. I had the same annoyance over the last couple of weeks.

Thanks for posting and adding a Fix.
troffasky
Znuny newbie
Posts: 53
Joined: 04 Apr 2011, 15:38
Znuny Version: 3.2.8
Real Name: Alex Dekker

Re: Why are the pop-up windows always oversized?

Post by troffasky »

Personally I think it's too wide as well, by about 400 pixels by my reckoning. There's so much empty space in there that just isn't used for anything.

In Firefox I've disabled the uneditable URL bar that Firefox adds to popup windows, as that uses up some vertical space needlessly, which helps slightly.
OTRS 3.2.8 on Ubuntu 12.04.2 LTS
Locked