onViewportResize method
- @internal
Called by the viewport when its size changes.
Implementation
@internal
void onViewportResize() {
if (parent != null) {
final viewportSize = camera.viewport.virtualSize;
transform.position.x = viewportSize.x * _anchor.x;
transform.position.y = viewportSize.y * _anchor.y;
visibleRect = null;
}
}