Try to be smarter about querying the border witdh
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -379,11 +379,15 @@ void wxPizza::get_border_widths(int& x, int& y)
|
|||||||
x = y = 1;
|
x = y = 1;
|
||||||
else if (m_border_style)
|
else if (m_border_style)
|
||||||
{
|
{
|
||||||
GtkWidget *entry_widget = wxGTKPrivate::GetEntryWidget();
|
GtkWidget *style_widget = wxGTKPrivate::GetEntryWidget();
|
||||||
if (entry_widget->style)
|
|
||||||
|
if (m_is_scrollable)
|
||||||
|
style_widget = wxGTKPrivate::GetTreeWidget();
|
||||||
|
|
||||||
|
if (style_widget->style)
|
||||||
{
|
{
|
||||||
x = entry_widget->style->xthickness;
|
x = style_widget->style->xthickness;
|
||||||
y = entry_widget->style->ythickness;
|
y = style_widget->style->ythickness;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user