Fix initial scroll position for new projects

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-29 19:53:59 +01:00
parent 9b9d8f6d4d
commit e920e18f1f
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 9 additions and 5 deletions

View file

@ -489,6 +489,9 @@ protected:
{
UI::onResize(ev);
if (fContext->window != nullptr)
fContext->window->setSize(rack::math::Vec(ev.size.getWidth(), ev.size.getHeight()));
const double scaleFactor = getScaleFactor();
char sizeString[64];
std::snprintf(sizeString, sizeof(sizeString), "%d:%d",