Module: nagvis
Branch: nagvis-1.5
Commit: 4229da1e5f6271657484bebb8d2a3247d2582448
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=4229da1e5f6271657484bebb8d2a3247d2582448

Author: Lars Michelsen <[email protected]>
Date:   Mon Dec  6 18:32:04 2010 +0100

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

---

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

diff --git a/ChangeLog b/ChangeLog
index 89ebcfb..6d5c7d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,3 +31,4 @@ WUI
   * 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