Skip to content

Commit

Permalink
Merge pull request #834 from enisn/dialogs-scrolling
Browse files Browse the repository at this point in the history
Scrolling for AutoFormView inside Dialogs
  • Loading branch information
enisn authored Dec 12, 2024
2 parents c2473bb + 2079fdf commit 0650f5d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,12 @@ public Task<TViewModel> DisplayFormViewAsync<TViewModel>(string title, TViewMode
{
{ submit, new Command(() =>
{
tcs.SetResult(viewModel);
tcs.TrySetResult(viewModel);
popup.Close();
}) },
{ cancel, new Command(() =>
{
tcs.SetResult(null);
tcs.TrySetResult(null);
}) }
});

Expand Down
2 changes: 1 addition & 1 deletion src/UraniumUI.Dialogs.Mopups/MopupsDialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public Task<TViewModel> DisplayFormViewAsync<TViewModel>(string title, TViewMode
Children =
{
GetHeader(title),
formView,
new ScrollView { Content = formView, MaximumHeightRequest = Page.Height * .8 },
GetDivider(),
GetFooter( new Dictionary<string, Command>
{
Expand Down
2 changes: 1 addition & 1 deletion src/UraniumUI/Dialogs/DefaultDialogAnimatedContentPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public async Task CloseAsync()

await Task.WhenAll(tasks);

await Navigation.PopModalAsync();
await Navigation.PopModalAsync(animated: false);
}
}
4 changes: 2 additions & 2 deletions src/UraniumUI/Dialogs/DefaultDialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,12 @@ public Task<TViewModel> DisplayFormViewAsync<TViewModel>(string title, TViewMode
var popupPage = new DefaultDialogAnimatedContentPage
{
BackgroundColor = GetBackdropColor(),
Content = GetFrame(Page.Width, new ScrollView
Content = GetFrame(Page.Width, new VerticalStackLayout
{
Children =
{
GetHeader(title),
new VerticalStackLayout { Content = formView },
new ScrollView { Content = formView, MaximumHeightRequest = Page.Height * .8 },
GetDivider(),
GetFooter(new Dictionary<string, Command>
{
Expand Down

0 comments on commit 0650f5d

Please sign in to comment.