Skip to content

Commit

Permalink
Merge in main for 0.23.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle.properties
  • Loading branch information
rock3r committed Aug 29, 2024
2 parents 9a69ba3 + ef78240 commit 797a1fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Empty file modified generate-release-patch.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ org.jetbrains.intellij.platform.buildFeature.useBinaryReleases=false

jdk.level=17
ijp.target=233
jewel.release.version=0.23.0
jewel.release.version=0.23.1
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,13 @@ private fun TextFieldDecorationBox(
incomingConstraints.offset(horizontal = -occupiedSpaceHorizontally).copy(minHeight = 0)
val textFieldPlaceable = measurables.single { it.layoutId == TEXT_FIELD_ID }.measure(textFieldConstraints)

// measure placeholder
val placeholderConstraints = textFieldConstraints.copy(minWidth = 0)
// measure placeholder (can't be bigger than the text)
val placeholderConstraints =
textFieldConstraints.copy(
minWidth = 0,
maxWidth = textFieldPlaceable.width,
maxHeight = textFieldPlaceable.height,
)
val placeholderPlaceable = measurables.find { it.layoutId == PLACEHOLDER_ID }?.measure(placeholderConstraints)

val width = calculateWidth(leadingPlaceable, trailingPlaceable, textFieldPlaceable, incomingConstraints)
Expand Down

0 comments on commit 797a1fe

Please sign in to comment.