Partial fix to bug #1040607: support for vertical orientation in win32 renderer of wxUniv notebook.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -745,8 +745,16 @@ wxRect wxNotebook::GetTabsPart() const
|
||||
const wxSize indent = GetRenderer()->GetTabIndent();
|
||||
if ( IsVertical() )
|
||||
{
|
||||
rect.x += indent.y;
|
||||
rect.y += indent.x;
|
||||
if ( dir == wxLEFT )
|
||||
{
|
||||
rect.x += indent.y;
|
||||
rect.width -= indent.y;
|
||||
}
|
||||
else // wxRIGHT
|
||||
{
|
||||
rect.width -= indent.y;
|
||||
}
|
||||
}
|
||||
else // horz
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user