Browse Source

Set preferred size to ComposePanel in IntelliJPlugin.

pull/405/head
Roman Sedaikin 4 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 { override fun createCenterPanel(): JComponent {
val dialog = this val dialog = this
var packed = false
return ComposePanel().apply { return ComposePanel().apply {
preferredSize = Dimension(800, 600)
setContent { setContent {
ComposeSizeAdjustmentWrapper( ComposeSizeAdjustmentWrapper(
window = dialog, window = dialog,

Loading…
Cancel
Save