From 640a34e3d37f2f45251ff7c00dcca43af4936cb3 Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Thu, 14 Jul 2022 13:57:00 +0200 Subject: [PATCH] Port CaptureMemorySnapshot to Kotlin UI DSL 2 GitOrigin-RevId: 032773508696a99943d0ef370e6e53256c7c9d8e --- .../intellij/ui/dsl/builder/textFieldWithBrowseButton.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/ui/dsl/builder/textFieldWithBrowseButton.kt b/platform/platform-impl/src/com/intellij/ui/dsl/builder/textFieldWithBrowseButton.kt index 16d0b769ad4b..67acd2382bf5 100644 --- a/platform/platform-impl/src/com/intellij/ui/dsl/builder/textFieldWithBrowseButton.kt +++ b/platform/platform-impl/src/com/intellij/ui/dsl/builder/textFieldWithBrowseButton.kt @@ -15,6 +15,14 @@ import org.jetbrains.annotations.ApiStatus import kotlin.reflect.KMutableProperty0 import com.intellij.openapi.observable.util.whenTextChangedFromUi as whenTextChangedFromUiImpl +/** + * Minimal width of text field in chars + * + * @see COLUMNS_TINY + * @see COLUMNS_SHORT + * @see COLUMNS_MEDIUM + * @see COLUMNS_LARGE + */ fun Cell.columns(columns: Int): Cell { component.textField.columns = columns return this