Skip to content

Commit d50c166

Browse files
committed
fix: 🐛 resize renderer canvas in UiManager.postStart (add ServiceLocator import & call)
1 parent 13b7847 commit d50c166

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/ui/uiManager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import { LayersManager } from './layers-manager';
4242
import { MobileManager } from './mobileManager';
4343
import { SearchManager } from './search-manager';
4444
import { UiValidation } from './ui-validation';
45+
import { ServiceLocator } from '@app/engine/core/service-locator';
4546

4647
export class UiManager {
4748
private static readonly LONG_TIMER_DELAY = MILLISECONDS_PER_SECOND * 100;
@@ -89,6 +90,7 @@ export class UiManager {
8990
/** This runs after the drawManagerInstance starts */
9091
static postStart() {
9192
UiValidation.initUiValidation();
93+
ServiceLocator.getRenderer().resizeCanvas(true);
9294

9395
setTimeout(() => {
9496
const imageElements = document.querySelectorAll('img') as unknown as {

0 commit comments

Comments
 (0)