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

Author: Lars Michelsen <[email protected]>
Date:   Tue Dec  7 22:36:14 2010 +0100

The textbox height is now set correctly when creating a new textbox

Conflicts:

        ChangeLog

---

 ChangeLog                                         |   15 +++++++++------
 share/server/core/classes/WuiViewMapAddModify.php |    7 +++++--
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b6299ee..de9eede 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,9 +45,12 @@ Frontend
   * Bugfix: Minor javascript fixes during object reload
 
 WUI
-    * Bugfix: Fixed deletion of multiple objects of same type in WUI without 
reloading
-    * Fixed reposition effect when adding borders to objects while hovering 
over a line
-    * Fixed problem showing up the dropdown menu of shape images in addmodify 
dialog after
-      adding at least one shape with an url as image
-    * It is now possible to reset options to their default value using the 
addmodify dialog
-      when they have been set before
+  * Bugfix: Deleting more than 2 objects was not work correctly
+  * Bugfix: Lines did reposition on mouseover in WUI by the height of the 
highlight 
+    border width
+  * Bugfix: The dropdown box for shapes was not shown up when there was at 
least one
+    shape with an url as icon
+  * Bugfix: Fixed problem reseting hover_url to empty value in add/modify 
dialog
+  * Bugfix: Inconsistency between textbox style attribute usage in frontend 
and WUI
+  * Bugfix: Relative label coordinates were calculated wrong when moving 
objects
+  * The textbox height is now set correctly when creating a new textbox
diff --git a/share/server/core/classes/WuiViewMapAddModify.php 
b/share/server/core/classes/WuiViewMapAddModify.php
index a9ae13f..e979828 100644
--- a/share/server/core/classes/WuiViewMapAddModify.php
+++ b/share/server/core/classes/WuiViewMapAddModify.php
@@ -109,10 +109,12 @@ class WuiViewMapAddModify {
                                        $myval = $this->aOpts['id'];
                                        $val_coords = explode(',', 
$this->aOpts['coords']);
                                        if ($this->aOpts['type'] == 'textbox') {
-                                               $objwidth = $val_coords[2] - 
$val_coords[0];
+                                               $objwidth  = $val_coords[2] - 
$val_coords[0];
+                                               $objheight = $val_coords[3] - 
$val_coords[1];
                                                $ret .= 
'document.addmodify.elements[\'x\'].value=\''.$val_coords[0].'\';';
                                                $ret .= 
'document.addmodify.elements[\'y\'].value=\''.$val_coords[1].'\';';
                                                $ret .= 
'document.addmodify.elements[\'w\'].value=\''.$objwidth.'\';';
+                                               $ret .= 
'document.addmodify.elements[\'h\'].value=\''.$objheight.'\';';
                                                $ret .= 
'toggleDefaultOption(\'w\');';
                                        } else {
                                                $ret .= 
'document.addmodify.elements[\'x\'].value=\''.$val_coords[0].','.$val_coords[2].'\';';
@@ -155,10 +157,11 @@ class WuiViewMapAddModify {
                                        } elseif(count($val_coords) == 4) {
                                                if ($this->aOpts['type'] == 
'textbox') {
                                                        $objwidth = 
$val_coords[2] - $val_coords[0];
-                                                       
+                                                       $objheight = 
$val_coords[3] - $val_coords[1];
                                                        $ret .= 
'document.addmodify.elements[\'x\'].value=\''.$val_coords[0].'\';';
                                                        $ret .= 
'document.addmodify.elements[\'y\'].value=\''.$val_coords[1].'\';';
                                                        $ret .= 
'document.addmodify.elements[\'w\'].value=\''.$objwidth.'\';';
+                                                       $ret .= 
'document.addmodify.elements[\'h\'].value=\''.$objheight.'\';';
                                                        $ret .= 
'toggleDefaultOption(\'w\');';
                                                } else {
                                                        $ret .= 
'document.addmodify.elements[\'x\'].value=\''.$val_coords[0].','.$val_coords[2].'\';';


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to