Forum  General Visual ...  Let's Chat Abou...  Control layout properties still incorrect in V6.1
Previous Previous
 
Next Next
New Post 6/20/2008 1:46 AM
  Tyson
157 posts
5th Level Poster




Control layout properties still incorrect in V6.1 

Hey guys.

Firstly thanks heaps for V6.1 - has fixed lots of my problems.

However, the issue logged here. It states that it is fixed for V6.1. It is not.

Im not sure if this is a misinterpretation of what the properties are supposed to do, but the Control.Right, and Control.Bottom are still not working!

You guys are using:

Right = Parent.Width - ( Left + Width ).
Bottom = Parent.Height - ( Top + Height).

When it actually should be (according to how WinForms behaves)

Right = Left + Width
Bottom = Top + Height.

It may seem like a minor issue, but I use View Model classes that are shared accross WinForms and VWG, and this breaks all the layout code inside these!

If you can get the sample app logged in the issue above working the same as it does in WinForms, all problems will be solved! :)

Cheers.

Tyson.

 
New Post 6/24/2008 12:07 AM
  shlomi.bin
559 posts
1st Level Poster




Re: Control layout properties still incorrect in V6.1 
Hi Tyson, 

Thanks for this important information – we reopened this issue and will handle it in VWG 6.2.

Cheers,

Shlomi

 
New Post 6/25/2008 12:45 AM
  lcsal208
37 posts
No Ranking


Re: Control layout properties still incorrect in V6.1 

From the sample app in the issue tracker, if you open both the apps, and put them side by side, and look at the values under Right and Bottom, you can clearly see the difference.

On the WebGui sample app, the value for Right is 1407 while the value for Bottom is 814. On the Windows sample app however, the value for Right is 47 and the value for Bottom is 22. Obviously the calculation for these 2 values are wrong since the rest of the values, width, height, top and left, are identical on both VWG and Windows form.

I hope this clearifies things.

Thanks

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Let's Chat Abou...  Control layout properties still incorrect in V6.1
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS