Browse Source

Fix preview scaling (#852)

Resolves #837
pull/845/head
Alexey Tsvetkov 3 years ago committed by GitHub
parent
commit
c41d7157f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/ide/preview/PreviewStateService.kt

2
idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/ide/preview/PreviewStateService.kt

@ -34,7 +34,7 @@ class PreviewStateService : Disposable {
val frameConfig = FrameConfig(
width = c.width,
height = c.height,
scale = null
scale = c.graphicsConfiguration.defaultTransform.scaleX
)
previewManager.updateFrameConfig(frameConfig)
}

Loading…
Cancel
Save