Commit 889a5b7f authored by coppro's avatar coppro

Fixed dropdown arrow display bug on Linux.

parent 902f493d
......@@ -115,7 +115,7 @@ bool Style::update(Context& ctx) {
}
void Style::initDependencies(Context& ctx, const Dependency& dep) const {
/// left .initDependencies(ctx,dep);
// left .initDependencies(ctx,dep);
// top .initDependencies(ctx,dep);
// width .initDependencies(ctx,dep);
// height .initDependencies(ctx,dep);
......
......@@ -72,7 +72,7 @@ void NativeLookEditor::resizeViewers() {
y += s->height + vspace;
}
SetVirtualSize(w, (int)y);
SetScrollbar(wxVERTICAL, 0, h, (int) y);
SetScrollbar(wxVERTICAL, 0, h, (int)y);
if (y >= h) {
// Doesn't fit vertically, add scrollbar and resize
/*
......
......@@ -194,6 +194,9 @@ void draw_menu_arrow(Window* win, DC& dc, const wxRect& rect, bool active) {
void draw_drop_down_arrow(Window* win, DC& dc, const wxRect& rect, bool active) {
wxRendererNative& rn = wxRendererNative::GetDefault();
int w = wxSystemSettings::GetMetric(wxSYS_VSCROLL_ARROW_X); // drop down arrow is same size
if (w == -1) {
w = wxSystemSettings::GetMetric(wxSYS_VSCROLL_X); // Try just the scrollbar, then.
}
rn.DrawComboBoxDropButton(win, dc,
wxRect(rect.x + rect.width - w, rect.y, w, rect.height)
, active ? wxCONTROL_PRESSED : 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment