Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Overview blank after layout (Read 6390 times)
leendert.versluijs
YaBB Newbies
*
Offline



Posts: 20
Joined: Dec 3rd, 2008
Overview blank after layout
Dec 3rd, 2008 at 8:31am
Print Post  
Hi,

We currently using the trial of wpfdiagram 2 (order is underway or already placed).

We found a problem with the overview control that happens when the treelayout is executed. Before auto layouting everything works fine. After it the overview never shows the diagram.
Tried already setting document again, but no result there.

Diagram and overview are hosted in infragistics contentpane (dockable windows).  Diagram object is created from code not via XAML.

It could well be possible i'm doing something wrong but it seems a bug to me.

I hope you have a solution for this problem.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview blank after layout
Reply #1 - Dec 3rd, 2008 at 11:06am
Print Post  
Applying a layout does not change automatically Diagram.Bounds. Do the items show if you call Diagram.ResizeToFitItems after TreeLayout.Arrange?

Stoyan
  
Back to top
 
IP Logged
 
leendert.versluijs
YaBB Newbies
*
Offline



Posts: 20
Joined: Dec 3rd, 2008
Re: Overview blank after layout
Reply #2 - Dec 3rd, 2008 at 11:29am
Print Post  
Hi Stoyan,

Thanks for the quick response.

Bounds are not changed during layout arrange. And all items are visible. Tried the resizetofititems afterwards but no change. the overview still does not show any content while diagram itself shows all.

Additional information is that when i use two diagrams and switch them both appear in the overview. But when i auto layout one that one does no longer appear in the overview.
It seems some state/field in the diagram after the autolayout is preventing it from showing correct in the overview.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview blank after layout
Reply #3 - Dec 3rd, 2008 at 11:47am
Print Post  
What happens if you call

overview.Update();

or

diagram.UpdateLayout();
overview.Update();

after TreeLayout.Arrange()?
  
Back to top
 
IP Logged
 
leendert.versluijs
YaBB Newbies
*
Offline



Posts: 20
Joined: Dec 3rd, 2008
Re: Overview blank after layout
Reply #4 - Dec 3rd, 2008 at 1:31pm
Print Post  
nope

overview does not support Update() tried UpdateLayout()
also in combination with diagram.UpdateLayout()
but still an empty overview.

I found out that it is not related to layout.Arrange but to ResizeToFitItems which i called after the arrange to ensure enough space for creating new objects.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview blank after layout
Reply #5 - Dec 3rd, 2008 at 1:56pm
Print Post  
What is the Diagram.Bounds value before and after the layout?
  
Back to top
 
IP Logged
 
leendert.versluijs
YaBB Newbies
*
Offline



Posts: 20
Joined: Dec 3rd, 2008
Re: Overview blank after layout
Reply #6 - Dec 3rd, 2008 at 2:51pm
Print Post  

Before Layout.Arrange() :  0,0,793,1122
After Layout.Arrange(): 0,0,793,1122
After Diagram.ResizeToFitItems(0): -4,-4,529,179

When Diagram.ResizeToFitItems(150) the bound become -154,-154,829,479 and the overview is no longer shown in my small overview window because it too large. when i resize my dockable window the overview shows up again.

It seems providing the ResizeToFitItems method with a bordersize>0 causes trouble to the overview control.

Removing the ResizeToFitItems() call works for me but it seems overview does not react very well to this method.


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview blank after layout
Reply #7 - Dec 3rd, 2008 at 3:02pm
Print Post  
It works fine with our version, so I suppose it might be the same problem as the one reported in this thread:
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_brep;action=display;num=122307287...

Could you check if the fix posted there works for you? If it doesn't, please email your saved diagram, the layout code, and the overview initialization to support@mindfusion.eu.

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
leendert.versluijs
YaBB Newbies
*
Offline



Posts: 20
Joined: Dec 3rd, 2008
Re: Overview blank after layout
Reply #8 - Dec 3rd, 2008 at 3:06pm
Print Post  
Also After myDiagram.ZoomToFit there are some trouble  Undecided.

Dragging in the overview is not working correct anymore. This also seems a problem in the diagram since when i switch to second diagram the overview is working, and when switching back to the zoomtofit diagram i get the erratic dragging again.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview blank after layout
Reply #9 - Dec 3rd, 2008 at 3:10pm
Print Post  
Seems we've posted at the same time - could you check if this version works better:

https://mindfusion.eu/_temp/ovw_fix.zip
  
Back to top
 
IP Logged
 
leendert.versluijs
YaBB Newbies
*
Offline



Posts: 20
Joined: Dec 3rd, 2008
Re: Overview blank after layout
Reply #10 - Dec 4th, 2008 at 10:52am
Print Post  
Hi Stoyan,

The fix works!
Thank you for the support

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint