commit e87159854085188a173b139be4c8e81db9ffb8b7
parent 48650a8a5172cd6b79cdcfecaf7e87bfeded3e62
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 4 Jun 2017 16:47:00 -0400
manager: set a better minimum size for Windows
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/dialog.hpp b/src/dialog.hpp
@@ -106,6 +106,7 @@ public:
void setAnchor(HWND, int flags);
void setAnchorPos(HWND, const LONG *left = nullptr, const LONG *top = nullptr,
const LONG *right = nullptr, const LONG *bottom = nullptr);
+ const POINT &minimumSize() const { return m_minimumSize; }
void setMinimumSize(const POINT &p) { m_minimumSize = p; }
void restoreState(Serializer::Data &);
diff --git a/src/manager.cpp b/src/manager.cpp
@@ -58,7 +58,10 @@ Manager::Manager(ReaPack *reapack)
void Manager::onInit()
{
Dialog::onInit();
- setMinimumSize({629, 210});
+
+ auto msize = minimumSize();
+ msize.y = 210;
+ setMinimumSize(msize);
m_apply = getControl(IDAPPLY);
disable(m_apply);