Skip to content

Commit 27bb080

Browse files
committed
Fix size of code viewer when user clicks "View Code"
1 parent 16b52c0 commit 27bb080

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Other/Internal/ControlToDisplayCodeHostedOnGitHub.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ public class ControlToDisplayCodeHostedOnGitHub : ContentControl
1414
public ControlToDisplayCodeHostedOnGitHub()
1515
{
1616
this.Loaded += OnLoaded;
17+
18+
VerticalContentAlignment = VerticalAlignment.Stretch;
19+
HorizontalContentAlignment = HorizontalAlignment.Stretch;
1720
}
1821

1922
void OnLoaded(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)