Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic resize handlers disappear after 1.8 upgrade of Mindfusion Diagramming (Read 5682 times)
Aby
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 6th, 2013
resize handlers disappear after 1.8 upgrade of Mindfusion Diagramming
May 30th, 2014 at 8:42am
Print Post  
Hi,

When we select a shape object in the html canvas, we used to show resize handlers for it. But now, after the 1.8 upgrade, the resize handlers are not visible, instead, a thick dotted border appears when an item is selected, and the shape cannot be resized.

Screen shot attached.

Any help would be appreciated.
  

mindfusion_1_8_1_issue.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: resize handlers disappear after 1.8 upgrade of Mindfusion Diagramming
Reply #1 - May 30th, 2014 at 9:43am
Print Post  
Hi,

It seems you have set the node's HandlesStyle property to MoveOnly (it was implemented in v1.7). Set it to SquareHandles to get the old style back.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Aby
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 6th, 2013
Re: resize handlers disappear after 1.8 upgrade of Mindfusion Diagramming
Reply #2 - May 30th, 2014 at 10:21am
Print Post  
Thanks for the tip.

The code below worked, the handles showed up. But now the shape is not re-sizable. Only the handles show up.

Globals.Diagram.selection.items[0].setHandlesStyle(MindFusion.Diagramming.HandlesStyle.SquareHandles)

Adding the below code enabled the handlers.
Globals.Diagram.selection.items[0].setEnabledHandles(MindFusion.Diagramming.AdjustmentHandles.All)

The only issue now is the rotation handler is also enabled, which we dont want. we only need the shape to be resized.

Any way ?




  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: resize handlers disappear after 1.8 upgrade of Mindfusion Diagramming
Reply #3 - May 30th, 2014 at 11:28am
Print Post  
By default EnabledHandles should be set to all handles without the rotation one, check if you aren't changing it somewhere on server side. You can reset back to the default with this assignment:

node.EnabledHandles = AdjustmentHandles.All & ~AdjustmentHandles.Rotate;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Aby
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 6th, 2013
Re: resize handlers disappear after 1.8 upgrade of Mindfusion Diagramming
Reply #4 - May 30th, 2014 at 12:54pm
Print Post  
node.EnabledHandles = AdjustmentHandles.All & ~AdjustmentHandles.Rotate; is C# right ?

Javascript, I use

Globals.Diagram.selection.items[0].setEnabledHandles(MindFusion.Diagramming.AdjustmentHandles.All & ~MindFusion.Diagramming.AdjustmentHandles.Rotate)

And it works. Hope I'm doing it right.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: resize handlers disappear after 1.8 upgrade of Mindfusion Diagramming
Reply #5 - May 30th, 2014 at 3:51pm
Print Post  
Yes, that was C# for setting from server side, and your JavaScript code is correct. Now I see the MoveOnly style is the default for containers, so you could set it from C# after calling CreateContainerNode on server.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint