From e464327e69152c985017dbc195c33b293e3afcb0 Mon Sep 17 00:00:00 2001 From: Twan van Laarhoven Date: Sat, 18 Apr 2020 19:12:52 +0200 Subject: [PATCH] filter ctrl: don't force height --- src/gui/control/filter_ctrl.cpp | 4 ++-- src/gui/control/filter_ctrl.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/control/filter_ctrl.cpp b/src/gui/control/filter_ctrl.cpp index d6d91fd7..0e369e34 100644 --- a/src/gui/control/filter_ctrl.cpp +++ b/src/gui/control/filter_ctrl.cpp @@ -6,7 +6,7 @@ // ----------------------------------------------------------------------------- : Includes -#include +#include #include #include // for HoverButton #include @@ -41,7 +41,7 @@ class TextCtrlWithFocus : public wxTextCtrl { }; FilterCtrl::FilterCtrl(wxWindow* parent, int id, String const& placeholder) - : wxControl(parent, id, wxDefaultPosition, wxSize(160,41), wxSTATIC_BORDER) + : wxControl(parent, id, wxDefaultPosition, wxSize(160,-1), wxSTATIC_BORDER) , changing(false) , placeholder(placeholder) { diff --git a/src/gui/control/filter_ctrl.hpp b/src/gui/control/filter_ctrl.hpp index 3e9b1c8f..586dd2fe 100644 --- a/src/gui/control/filter_ctrl.hpp +++ b/src/gui/control/filter_ctrl.hpp @@ -4,8 +4,8 @@ //| License: GNU General Public License 2 or later (see file COPYING) | //+----------------------------------------------------------------------------+ -#ifndef HEADER_GUI_CONTROL_FILTER_CTRL -#define HEADER_GUI_CONTROL_FILTER_CTRL +#ifndef HEADER_GUI_CONTROL_FILTER_CTRL +#define HEADER_GUI_CONTROL_FILTER_CTRL // ----------------------------------------------------------------------------- : Includes