Skip to content

Commit 5c61043

Browse files
committed
Fixed container height for vertical Marquee
1 parent e34e9eb commit 5c61043

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/Marquee/src/Marquee.Events.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ private void Segment_SizeChanged(object sender, SizeChangedEventArgs e)
115115
if (_segment1 is null)
116116
return;
117117

118+
if (_marqueeContainer is null)
119+
return;
120+
121+
// Cap the height of the container to the segment height
122+
_marqueeContainer.Height = _segment1.ActualHeight;
123+
118124
// If the segment size changes, we need to update the storyboard,
119125
// and seek to the correct position to maintain a smooth animation.
120126
UpdateMarquee(true);

0 commit comments

Comments
 (0)