fixed internal border drawing for listbox in GTK theme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -324,6 +324,19 @@ void wxControlRenderer::DrawBorder()
|
||||
{
|
||||
int flags = m_window->GetStateFlags();
|
||||
|
||||
// if the scrollbars are outside the border, we must adjust the rect to
|
||||
// exclude them
|
||||
if ( !m_renderer->AreScrollbarsInsideBorder() )
|
||||
{
|
||||
wxScrollBar *scrollbar = m_window->GetScrollbar(wxVERTICAL);
|
||||
if ( scrollbar )
|
||||
m_rect.width -= scrollbar->GetSize().x;
|
||||
|
||||
scrollbar = m_window->GetScrollbar(wxHORIZONTAL);
|
||||
if ( scrollbar )
|
||||
m_rect.height -= scrollbar->GetSize().y;
|
||||
}
|
||||
|
||||
// draw outline
|
||||
m_renderer->DrawBorder(m_dc, m_window->GetBorder(),
|
||||
m_rect, flags, &m_rect);
|
||||
|
Reference in New Issue
Block a user