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