Module: nagvis
Branch: master
Commit: 2eccf641bdb78989df6893a8f397187670492203
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=2eccf641bdb78989df6893a8f397187670492203

Author: Lars Michelsen <[email protected]>
Date:   Sun Feb  6 23:30:12 2011 +0100

Fixed hover menu positions when header not visible

---

 share/userfiles/templates/default.css       |    4 +++-
 share/userfiles/templates/default.header.js |    7 +++++++
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/share/userfiles/templates/default.css 
b/share/userfiles/templates/default.css
index 3888a2d..dce0d24 100644
--- a/share/userfiles/templates/default.css
+++ b/share/userfiles/templates/default.css
@@ -44,7 +44,6 @@ img {border:0}
 /* Global DIVs */
 .main {margin:0;padding:0;background-color:white;color:black}
 .header {position:fixed;top:0;left:0;padding:0;z-index:100;min-width:700px;}
-#headershow {display:none}
 .headerspacer {width:100%}
 .map {position:relative;top:0;left:0}
 
@@ -518,6 +517,9 @@ td#popupWindowContent fieldset.form label {
 }
 
 #headershow {
+       display: none;
+       width: 9px;
+       min-width: 9px;
        background-image: none;
 }
 
diff --git a/share/userfiles/templates/default.header.js 
b/share/userfiles/templates/default.header.js
index 4096b83..f74f4b1 100644
--- a/share/userfiles/templates/default.header.js
+++ b/share/userfiles/templates/default.header.js
@@ -44,22 +44,29 @@ function headerDraw() {
 
 function headerToggle(store) {
        var header = document.getElementById('header');
+       var spacer = document.getElementById('headerspacer');
        var show   = document.getElementById('headershow');
        var state = true;
 
        if(header.style.display === '') {
                header.style.display = 'none';
+               spacer.style.display = 'none';
                show.style.display   = 'block';
                state = false;
        } else {
                header.style.display = '';
+               spacer.style.display = '';
                show.style.display   = 'none';
        }
+       
+       // Reset the header height cache
+       cacheHeaderHeight    = null;
 
        if(store === true)
                storeUserOption('header', state);
        
        show   = null;
+       spacer = null;
        header = null;
 }
 


------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to