Set a sane initial MFHD Editor size
authorDan Scott <dscott@laurentian.ca>
Thu, 9 Aug 2012 20:31:44 +0000 (16:31 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 10 Aug 2012 12:43:01 +0000 (08:43 -0400)
commitc81118e76cc10529d857233462a6d690c14a9834
tree663970fcf7ddc63e1da10a886569c39facf5bd08
parentfbc36bfdb1098df6b4cd8f48d59bc9b09cc679d4
Set a sane initial MFHD Editor size

For most MFHD records, the size of the MARC Editor window when spawned
fits into the confines of a normal desktop. However, for MFHD records
with dozens or more rows, the window chrome can be inaccessible because
it is bumped off the top of the Windows desktop. This makes it
impossible for users to close the window without a workaround like
hitting ALT+F4

This branch sets the window to an initial height of 40 pixels less than
the height of the entire staff client window. This should be enough to
enable the chrome on top to be visible. In addition, we have to set the
width to something reasonable because XUL seems to otherwise set the
window to be extremely skinny once an explicit height is set, so we set
that to be half the width of the staff client window.

Finally, we allow the new window to be resizable according to the user's
preference.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/xul/staff_client/chrome/content/cat/opac.js