fix(search): keep close button visible for tall result lists

This commit is contained in:
Meik
2026-07-13 11:15:25 +02:00
parent 9f2c3fefc1
commit bbedbf71c8
2 changed files with 8 additions and 3 deletions

View File

@@ -27,20 +27,23 @@
<Border x:Name="MainBorder"
x:FieldModifier="private"
Background="#01000000"
Padding="10"
Padding="10 13 10 10"
HorizontalAlignment="Right"
VerticalAlignment="Bottom">
<Grid VerticalAlignment="Bottom">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--Grid Row 0: Close Button-->
<Grid Grid.Row="0">
<Grid x:Name="WindowStateBarContainer"
x:FieldModifier="private"
Grid.Row="0"
MinHeight="26">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

View File

@@ -96,6 +96,7 @@ namespace FasdDesktopUi.Pages.SearchPage
};
SizeChanged += (s, e) => ScheduleSearchResultMaxHeightUpdate();
SearchBarUc.SizeChanged += (s, e) => ScheduleSearchResultMaxHeightUpdate();
WindowStateBarContainer.SizeChanged += (s, e) => ScheduleSearchResultMaxHeightUpdate();
BodyStack_TicketOverview.SizeChanged += (s, e) => ScheduleSearchResultMaxHeightUpdate();
SearchHistoryBorder.SizeChanged += (s, e) => ScheduleSearchResultMaxHeightUpdate();
@@ -136,6 +137,7 @@ namespace FasdDesktopUi.Pages.SearchPage
var reservedHeight = 0.0;
reservedHeight += GetVisibleHeightWithMargin(SearchBarUc);
reservedHeight += GetVisibleHeightWithMargin(WindowStateBarContainer);
reservedHeight += GetVisibleHeightWithMargin(BodyStack_TicketOverview);
reservedHeight += GetVisibleHeightWithMargin(SearchHistoryBorder);