[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms Control.cs,1.11
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms Control.cs,1.11,1.12 |
Date: |
Mon, 16 Jun 2003 21:33:49 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms
In directory subversions:/tmp/cvs-serv5060/System.Windows.Forms
Modified Files:
Control.cs
Log Message:
If not anchored on either side, center within the parent's edges.
Index: Control.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Control.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** Control.cs 17 Jun 2003 01:04:55 -0000 1.11
--- Control.cs 17 Jun 2003 01:33:46 -0000 1.12
***************
*** 1808,1812 ****
else
{
! // Don't anchor to
either - default to top.
bottom = rect.Height -
(top + child.height);
}
--- 1808,1813 ----
else
{
! // Center within the
top and bottom edges.
! top = (rect.Height -
child.height) / 2;
bottom = rect.Height -
(top + child.height);
}
***************
*** 1826,1830 ****
else
{
! // Don't anchor to
either - default to left.
right = rect.Width -
(left + child.width);
}
--- 1827,1832 ----
else
{
! // Center within the
left and right edges.
! left = (rect.Width -
child.width) / 2;
right = rect.Width -
(left + child.width);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms Control.cs,1.11,1.12,
Rhys Weatherley <address@hidden> <=