From 3ee1463efcb9fdfeb43369ca1db60de6d428837d Mon Sep 17 00:00:00 2001 From: Aleksandr Krasilnikov Date: Thu, 13 Jun 2019 13:31:35 +0300 Subject: [PATCH] UI DSL: remove limitation of JPasswordField with GrowPolicy.SHORT_TEXT Since in all new UI components password fields should have the same resizing behavior as any other text fields Fix for IDEA-215252 GitOrigin-RevId: 888c3f835bcfcd752824de0e1a20b7ddead02fa6 --- .../com/intellij/ui/layout/migLayout/componentConstraints.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ui/layout/migLayout/componentConstraints.kt b/platform/platform-impl/src/com/intellij/ui/layout/migLayout/componentConstraints.kt index 2a27f2d1b9c6..4128388e7331 100644 --- a/platform/platform-impl/src/com/intellij/ui/layout/migLayout/componentConstraints.kt +++ b/platform/platform-impl/src/com/intellij/ui/layout/migLayout/componentConstraints.kt @@ -91,10 +91,6 @@ internal class DefaultComponentConstraintCreator(private val spacing: SpacingCon cc.value.growX() } - component is JPasswordField -> { - applyGrowPolicy(cc.value, GrowPolicy.SHORT_TEXT) - } - component is JTextField && component.columns != 0 -> return