Browse Source

Set preferred size to ComposePanel in IntelliJPlugin.

pull/405/head
Roman Sedaikin 3 years ago
parent
commit
1196d4563a
  1. 2
      examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt

2
examples/intelliJPlugin/src/main/kotlin/com/jetbrains/compose/ComposeDemoAction.kt

@ -40,8 +40,8 @@ class ComposeDemoAction : DumbAwareAction() {
override fun createCenterPanel(): JComponent {
val dialog = this
var packed = false
return ComposePanel().apply {
preferredSize = Dimension(800, 600)
setContent {
ComposeSizeAdjustmentWrapper(
window = dialog,

Loading…
Cancel
Save