merge of RTL changes (with many modifications) from SOC2006_RTL branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1695,6 +1695,16 @@ void wxBoxSizer::RecalcSizes()
|
||||
// wxALIGN_CENTER should be used in new code
|
||||
child_pos.y += (m_size.y - size.y) / 2;
|
||||
|
||||
if ( m_containingWindow )
|
||||
{
|
||||
child_pos.x = m_containingWindow->AdjustForLayoutDirection
|
||||
(
|
||||
child_pos.x,
|
||||
width,
|
||||
m_size.x
|
||||
);
|
||||
}
|
||||
|
||||
item->SetDimension( child_pos, child_size );
|
||||
|
||||
pt.x += width;
|
||||
|
Reference in New Issue
Block a user