[open-ils-commits] [GIT] Evergreen ILS branch master updated. 17e0a66c1f53e43797b1013855a2994c547b8db3

Evergreen Git git at git.evergreen-ils.org
Fri Aug 10 08:42:50 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  17e0a66c1f53e43797b1013855a2994c547b8db3 (commit)
      from  5c82e4c0b44b7fe5cb71a3cacb56ff1a3ca1a619 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 17e0a66c1f53e43797b1013855a2994c547b8db3
Author: Dan Scott <dscott at laurentian.ca>
Date:   Thu Aug 9 16:31:44 2012 -0400

    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 at laurentian.ca>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
index 9151ab1..807f2f0 100644
--- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
+++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
@@ -736,7 +736,11 @@ function open_mfhd_editor(sre_id) {
 }
 
 function open_marc_editor(rec, label) {
-    win = window.open( xulG.url_prefix('XUL_MARC_EDIT'), '', 'chrome' );
+    /* Prevent the spawned MARC editor from making its title bar inaccessible */
+    var initHeight = self.outerHeight - 40;
+    /* Setting an explicit height results in a super skinny window, so fix that up */
+    var initWidth = self.outerWidth / 2;
+    win = window.open( xulG.url_prefix('XUL_MARC_EDIT'), '', 'chrome,resizable,height=' + initHeight + ',width=' + initWidth );
 
     win.xulG = {
         record : {marc : rec.marc()},

-----------------------------------------------------------------------

Summary of changes:
 .../xul/staff_client/chrome/content/cat/opac.js    |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list