|
From: <ma...@us...> - 2011-01-16 12:53:20
|
Revision: 255
http://openautomation.svn.sourceforge.net/openautomation/?rev=255&view=rev
Author: mayerch
Date: 2011-01-16 12:53:14 +0000 (Sun, 16 Jan 2011)
Log Message:
-----------
Fix: compare bottom right corner for canvas resize (and not top left...)
Modified Paths:
--------------
PyWireGate/trunk/logic_editor/logicEditor.js
Modified: PyWireGate/trunk/logic_editor/logicEditor.js
===================================================================
--- PyWireGate/trunk/logic_editor/logicEditor.js 2011-01-16 12:44:54 UTC (rev 254)
+++ PyWireGate/trunk/logic_editor/logicEditor.js 2011-01-16 12:53:14 UTC (rev 255)
@@ -146,7 +146,7 @@
var c = getCoordinate( {pageX: ui.position.left, pageY: ui.position.top} );
var data = $.extend( true, c, ui.draggable.data('element') );
drawElement( $('#editor').svg('get'), data );
- editorResize( c );
+ editorResize( { x: c.x + data.width, y: c.y + data.height } );
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|