Fix initial scroll position for new projects
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
9b9d8f6d4d
commit
e920e18f1f
3 changed files with 9 additions and 5 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue