Fix resizing view breaking app on high DPI displays (#5275)

* Fix resizing view breaking app on high DPI displays

* A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com>
This commit is contained in:
49fl
2025-02-06 12:06:50 -05:00
committed by GitHub
parent c8653beae7
commit 019cb815f9
2 changed files with 10 additions and 2 deletions

View File

@ -1406,6 +1406,8 @@ export class EngineCommandManager extends EventTarget {
commandId: string
}
settings: SettingsViaQueryString
width: number = 1337
height: number = 1337
/**
* Export intent traxcks the intent of the export. If it is null there is no
@ -1511,6 +1513,9 @@ export class EngineCommandManager extends EventTarget {
return
}
this.width = width
this.height = height
// If we already have an engine connection, just need to resize the stream.
if (this.engineConnection) {
this.handleResize({
@ -1823,6 +1828,9 @@ export class EngineCommandManager extends EventTarget {
return
}
this.width = streamWidth
this.height = streamHeight
const resizeCmd: EngineCommand = {
type: 'modeling_cmd_req',
cmd_id: uuidv4(),