mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
filter ctrl: don't force height
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Includes
|
// ----------------------------------------------------------------------------- : Includes
|
||||||
|
|
||||||
#include <util/prec.hpp>
|
#include <util/prec.hpp>
|
||||||
#include <gui/control/filter_ctrl.hpp>
|
#include <gui/control/filter_ctrl.hpp>
|
||||||
#include <gui/about_window.hpp> // for HoverButton
|
#include <gui/about_window.hpp> // for HoverButton
|
||||||
#include <gui/drop_down_list.hpp>
|
#include <gui/drop_down_list.hpp>
|
||||||
@@ -41,7 +41,7 @@ class TextCtrlWithFocus : public wxTextCtrl {
|
|||||||
};
|
};
|
||||||
|
|
||||||
FilterCtrl::FilterCtrl(wxWindow* parent, int id, String const& placeholder)
|
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)
|
, changing(false)
|
||||||
, placeholder(placeholder)
|
, placeholder(placeholder)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
//| License: GNU General Public License 2 or later (see file COPYING) |
|
//| License: GNU General Public License 2 or later (see file COPYING) |
|
||||||
//+----------------------------------------------------------------------------+
|
//+----------------------------------------------------------------------------+
|
||||||
|
|
||||||
#ifndef HEADER_GUI_CONTROL_FILTER_CTRL
|
#ifndef HEADER_GUI_CONTROL_FILTER_CTRL
|
||||||
#define HEADER_GUI_CONTROL_FILTER_CTRL
|
#define HEADER_GUI_CONTROL_FILTER_CTRL
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Includes
|
// ----------------------------------------------------------------------------- : Includes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user