mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 09:23:32 +00:00
Fix PopupWindow size hint when it doesn't have a title
This commit is contained in:
parent
d8417df35f
commit
e422acff1f
@ -22,7 +22,7 @@ using namespace gfx;
|
|||||||
PopupWindow::PopupWindow(const std::string& text,
|
PopupWindow::PopupWindow(const std::string& text,
|
||||||
ClickBehavior clickBehavior,
|
ClickBehavior clickBehavior,
|
||||||
EnterBehavior enterBehavior)
|
EnterBehavior enterBehavior)
|
||||||
: Window(WithTitleBar, text)
|
: Window(text.empty() ? WithoutTitleBar: WithTitleBar, text)
|
||||||
, m_clickBehavior(clickBehavior)
|
, m_clickBehavior(clickBehavior)
|
||||||
, m_enterBehavior(enterBehavior)
|
, m_enterBehavior(enterBehavior)
|
||||||
, m_filtering(false)
|
, m_filtering(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user