This is a migrated thread and some comments may be shown as answers.

it's stuck when Containershape PositionChanged

2 Answers 88 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
seokhyun
Top achievements
Rank 1
Veteran
seokhyun asked on 29 Jun 2020, 08:57 AM

hello, 

 

i have a problem that containershape's bounds arrange.

I try to arrange "Shape" and "ContainerShape" at regular intervals vertically.

ContainerShape should have inner Containers or Shapes. and ContainerShape linked by others. (connector are located top and bottom. each connector connected on link)

if drag or drop event routed, then arrange items. AutoLayout. (custom layout)

 

each item's position be changed. method working successful.

But Speed issues arise through the "OnPositionChanged" event of "ContainerShape".

 

for example,

A,B,C is ContainerShape. and B,C is inner Container in A.

i recognized,

A's OnPositionChanged occur

B's OnPositionChanged occur

B's CalculateContentBounds occur

C's OnPositionChanged occur

C's CalculateContentBounds occur

A's CalculateContentBounds occur

 

problem,

Changing the position of the "A" connected to each other (D or E etc) causes a pause for a moment before the "A's CalculateContentBounds occur" occurs.

I don't know how to prevent the pause.

 

If i block the "OnPositionChanged" event, then arranging is failed but, a paused issue doesn't occur.

2 Answers, 1 is accepted

Sort by
0
seokhyun
Top achievements
Rank 1
Veteran
answered on 30 Jun 2020, 05:09 AM

i've got profile by dottrace program.

image is profile result.

 

UpdateStartPosition && UpdateGeometryOverride cause 55150ms.

0
seokhyun
Top achievements
Rank 1
Veteran
answered on 01 Jul 2020, 06:04 AM
What's strange is that when i fold "ContainerShape," there's no problem with the speed, but when i unfold it, there's a speed issue.
Tags
Diagram
Asked by
seokhyun
Top achievements
Rank 1
Veteran
Answers by
seokhyun
Top achievements
Rank 1
Veteran
Share this question
or