1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a potential infinite resize loop when using the standalone plug-in window with a transformed editor

This commit is contained in:
ed 2020-07-08 17:16:25 +01:00
parent 60b6afd517
commit dc8145fe6a

View file

@ -751,8 +751,8 @@ private:
notification.setBounds (r.removeFromTop (NotificationArea::height));
if (editor != nullptr)
editor->setBounds (editor->getLocalArea (this, r)
.withPosition (r.getTopLeft().transformedBy (editor->getTransform().inverted())));
editor->setBounds (editor->getLocalArea (this, r.toFloat())
.withPosition (editor->getLocalPoint (this, r.getTopLeft().toFloat())).toNearestInt());
}
private: