Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Layout features seem unusual with version 1.0.2 (Read 2626 times)
EricGiles
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Mar 19th, 2009
Layout features seem unusual with version 1.0.2
Mar 20th, 2009 at 1:03pm
Print Post  
I have installed version 1.0.2 beta in order to test a bug that was apparent with version 1.0.1.

There are a couple of unusual behaviours that I wanted to check. Firstly, I have a diagram within a ScrollViewer. All alignment settings are defaulted and with version 1.0.1, the diagram filled the area (it is filling out a single row/column within a Grid). The newer version doesn't and there is a 'Bounds' property that seems to constantly be reset to:
0,0,793.700787401575,1122.51968503937
which is causing the drawing control to become a fixed size.

I also had some code that resized the drawing based on the extent of the nodes and the zoomfactor of the drawing that worked beautifully with 1.0.1. Now, the BackBrush doesn't repaint the new area of the diagram when it is resized.

I am not sure if these are actual problems as it is obviously beta however I just wanted to find out as I am trying to build a prototype for demonstration purposes at the moment and the beta version appears to be causing some issues.

Thanks,

Eric
  
Back to top
 
IP Logged
 
EricGiles
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Mar 19th, 2009
Re: Layout features seem unusual with version 1.0.
Reply #1 - Mar 20th, 2009 at 1:12pm
Print Post  
EXTRA INFO:

If I manually set the Bounds property of the diagram myself, the BackBrush paints the complete area and I can get the diagram to resize appropriately.

Can you let me know if this is likely to change?

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout features seem unusual with version 1.0.
Reply #2 - Mar 20th, 2009 at 3:23pm
Print Post  
This might happen because we changed the Diagram base type from Canvas to ContentControl. By default Canvas does not clip its content, so the background brush fills all available space. Now the ContentControl clips its content at the Bounds rectangle so the background won't fill the whole scroll viewer if the diagram is smaller than it. Try either setting the scrollviewer's Background to the same brush, or make Bounds at least as large as the viewer.

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