filter ctrl: don't force height

This commit is contained in:
Twan van Laarhoven
2020-04-18 19:12:52 +02:00
parent 60c392a068
commit e464327e69
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <util/prec.hpp>
#include <gui/control/filter_ctrl.hpp>
#include <gui/about_window.hpp> // for HoverButton
#include <gui/drop_down_list.hpp>
@@ -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)
{
+2 -2
View File
@@ -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