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

Author: Lars Michelsen <[email protected]>
Date:   Sun Apr 18 19:30:56 2010 +0200

#255 Fixed WUI context menu in IE

---

 share/frontend/wui/classes/WuiMap.php |   20 ++++++++++----------
 share/frontend/wui/css/wui.css        |   17 ++++++++++++-----
 2 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/share/frontend/wui/classes/WuiMap.php 
b/share/frontend/wui/classes/WuiMap.php
index 74baafc..f1712f5 100644
--- a/share/frontend/wui/classes/WuiMap.php
+++ b/share/frontend/wui/classes/WuiMap.php
@@ -579,7 +579,7 @@ class WuiMap extends GlobalMap {
                        $id = 'icon_'.$obj['type'].'_'.$obj['id'].'-context';
                }
                
-               $ret = '<div id="'.$id.'" class="context" 
style="z-index:1000;display:none;position:absolute;overflow:visible;"';
+               $ret = '<div id="'.$id.'" class="context" 
style="z-index:1000;display:none;position:absolute;overflow:visible;">';
                $ret .= $this->infoBox($obj);
                $ret .= '</div>';
 
@@ -603,7 +603,7 @@ class WuiMap extends GlobalMap {
                unset($obj['state']);
                
                // add all the object's defined properties to the tooltip body
-               $tooltipText = '<table class=\'infobox\'>';
+               $tooltipText = '<table class="infobox">';
                $configuredText = '';
                $defaultText = '';
                
@@ -628,7 +628,7 @@ class WuiMap extends GlobalMap {
                        $value = str_replace('"','&quot;', $value);
                        
                        if($bGlobal) {
-                               $defaultText .= '<tr 
class=\'inherited\'><td>'.$key.'</td><td>'.$value.'</td></tr>';
+                               $defaultText .= '<tr 
class="inherited"><td>'.$key.'</td><td>'.$value.'</td></tr>';
                        } else {
                                $configuredText .= 
'<tr><td>'.$key.'</td><td>'.$value.'</td></tr>';
                        }
@@ -638,11 +638,11 @@ class WuiMap extends GlobalMap {
                 * Add action links
                 */
                
-               $tooltipText .= "<tr><th colspan='2' style='height:34px;'>";
-               $tooltipText .= "<ul class='nav'>";
+               $tooltipText .= '<tr><th colspan="2" style="height:34px;">';
+               $tooltipText .= '<ul class="nav">';
                
                // Edit link
-               $tooltipText .= "<li><a 
style='background-image:url(".$this->CORE->getMainCfg()->getValue('paths','htmlbase')."/frontend/wui/images/modify.png)'"
+               $tooltipText .= '<li><a 
style="background-image:url('.$this->CORE->getMainCfg()->getValue('paths','htmlbase').'/frontend/wui/images/modify.png)"'
                  ." href=\"#\" 
onclick=\"showFrontendDialog('".$this->CORE->getMainCfg()->getValue('paths', 
'htmlbase')."/server/core/ajax_handler.php?mod=Map&act=addModify&do=modify&map=".$this->MAPCFG->getName()."&type=".$obj['type']."&id=".$obj['id']."',
 '".$this->CORE->getLang()->getText('change')."');contextHide();\">"
                        
."<span>".$this->CORE->getLang()->getText('change')."</span></a></li>";
                
@@ -665,15 +665,15 @@ class WuiMap extends GlobalMap {
                  ." href='#' 
onclick='deleteMapObject(\"box_".$obj['type']."_".$obj['id']."\");contextHide();return
 false;'>"
                  
."<span>".$this->CORE->getLang()->getText('delete')."</span></a></li>";
                
-               $tooltipText .= "</ul>";
-               $tooltipText .= "</th></tr>";
+               $tooltipText .= '</ul>';
+               $tooltipText .= '</th></tr>';
                
                
                // Print configured settings
-               $tooltipText .= '<tr><th 
colspan=\'2\'>'.$this->CORE->getLang()->getText('configured').'</th></tr>'.$configuredText;
+               $tooltipText .= '<tr><th 
colspan="2">'.$this->CORE->getLang()->getText('configured').'</th></tr>'.$configuredText;
                
                // Print inherited settings
-               $tooltipText .= '<tr class=\'inherited\'><th 
colspan=\'2\'>'.$this->CORE->getLang()->getText('inherited').'</th></tr>'.$defaultText;
+               $tooltipText .= '<tr class="inherited"><th 
colspan="2">'.$this->CORE->getLang()->getText('inherited').'</th></tr>'.$defaultText;
                
                $tooltipText .= '</table>';
                
diff --git a/share/frontend/wui/css/wui.css b/share/frontend/wui/css/wui.css
index e6a4743..0e78c42 100644
--- a/share/frontend/wui/css/wui.css
+++ b/share/frontend/wui/css/wui.css
@@ -27,10 +27,16 @@
  */
 
 /*
+ * The grid on the maps
+ */
+
+#grid {z-index:99}
+
+/*
  * WUI context menu on objects
  */
 
-div.context {width:auto;max-width:400px;}
+div.context {width:400px;max-width:400px;}
 
 table.infobox {
        background-color: #F5F5F5; 
@@ -70,27 +76,28 @@ table.infobox tr.inherited th, table.infobox tr.inherited 
td {
 }
 
 /* hover menu navigation styling */
-table.infobox ul.nav {
+table.infobox tr th ul.nav {
        margin: 0;
        padding: 0;
        height: 34px;
        width: 100%;
 }
 
-table.infobox ul.nav li {
+table.infobox tr th ul.nav li {
+       position: relative;
        float: left;
   list-style-type: none;
        border-right: 1px #a4a4a4 solid;
 }
 
-table.infobox ul.nav li a {
+table.infobox tr th ul.nav li a {
        float: left;
   margin: 0;
   background-repeat: no-repeat;
   background-position: 5px 50%;
 }
 
-table.infobox ul.nav li a span {
+table.infobox tr th ul.nav li a span {
   padding: 0 .4em 0 42px;
   display: inline;
   line-height: 34px;


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to