refactor(editor): enable forceUpdate by default in viewport apis (#11264)

In this way, all downstream callers can be guaranteed by correct viewport fit result, instead of requiring them to set `forceUpdate: true` param explicitly to them. The resizing optimization is an internal exception.
This commit is contained in:
doodlewind
2025-03-28 10:04:55 +00:00
parent 85daea6fa8
commit ebee11f573
3 changed files with 7 additions and 8 deletions

View File

@@ -58,8 +58,7 @@ function fitViewport(
viewport.setViewportByBound(
Bound.deserialize(newViewport.xywh),
newViewport.padding,
false,
true
false
);
} else {
gfx.fitToScreen({