Skip to content

Commit 8596be9

Browse files
author
Miklos Juhasz
committed
Fix edit box height expanding in Fix Common Errors step 2
The subtitle TextBox had no fixed height and VerticalAlignment.Stretch, causing it to grow to fit content when long-text rules were selected, which shrank the grids above it.
1 parent 2f20192 commit 8596be9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ui/Features/Tools/FixCommonErrors/FixCommonErrorsWindow.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,7 @@ private Grid MakeStep2EditPanel()
548548
AcceptsReturn = true,
549549
TextWrapping = TextWrapping.Wrap,
550550
HorizontalAlignment = HorizontalAlignment.Stretch,
551-
VerticalAlignment = VerticalAlignment.Stretch,
552-
MinHeight = 60,
551+
Height = 60,
553552
FontSize = Se.Settings.Appearance.SubtitleTextBoxFontSize,
554553
FontWeight = Se.Settings.Appearance.SubtitleTextBoxFontBold ? FontWeight.Bold : FontWeight.Normal,
555554
[!TextBox.TextProperty] = new Binding($"{nameof(_vm.SelectedParagraph)}.{nameof(SubtitleLineViewModel.Text)}")

0 commit comments

Comments
 (0)