in src/main/kotlin/com/jetbrains/plugin/jtreg/ui/VariableSelectionFragment0.kt [197:219]
override fun layoutButtons() {
super.layoutButtons()
var dropDownWidth = 0
dropDown?.let {
val preferredSze = dropDown.preferredSize
dropDownWidth = preferredSze.width - ourInset * 2
dropDown.bounds = Rectangle(closeButton.x - ourInset * 2, 0, preferredSze.width, button.height)
}
val insets = button.margin
insets.right += dropDownWidth
button.margin = insets
val closeButtonBounds = closeButton.bounds
closeButtonBounds.x += dropDownWidth
closeButton.bounds = closeButtonBounds
val bounds = button.bounds
bounds.width += dropDownWidth
button.bounds = bounds
preferredSize = bounds.size
}