reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 7a95b64cf63b84a4bf6e11bf1ef5ce77f17809c6
parent b32d4bf7f016857416ccfe6f62d506c9b3dec517
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Fri, 23 Dec 2016 23:45:17 -0500

about: fix link button positioning when the window is resized

Diffstat:
Msrc/about.cpp | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/about.cpp b/src/about.cpp @@ -69,11 +69,9 @@ void About::onInit() setAnchor(m_list->handle(), AnchorRight | AnchorBottom); setAnchor(getControl(IDC_REPORT), AnchorRight | AnchorBottom); setAnchor(getControl(IDC_CHANGELOG), AnchorRight | AnchorBottom); - setAnchor(getControl(IDC_WEBSITE), AnchorTop | AnchorBottom); - setAnchor(getControl(IDC_DONATE), AnchorTop | AnchorBottom); - setAnchor(getControl(IDC_SCREENSHOT), AnchorTop | AnchorBottom); setAnchor(getControl(IDC_ACTION), AnchorAll); setAnchor(getControl(IDOK), AnchorAll); + // link buttons are anchored in setMetadata } void About::onCommand(const int id, int) @@ -206,6 +204,7 @@ void About::setMetadata(const Metadata *metadata, const bool substitution) SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE); show(handle); + setAnchor(handle, AnchorTop | AnchorBottom); rect.left += shift; m_links[control] = {}; }