-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Description
I have a dialog defined by this XAML:
<extra:DialogView
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:extra="clr-namespace:AiForms.Dialogs.Abstractions;assembly=AiForms.Dialogs.Abstractions"
xmlns:resource="clr-namespace:Angler.Resources"
UseCurrentPageLocation="False"
OverlayColor="#80000000"
ProportionalWidth="0.9"
HorizontalLayoutAlignment="Center"
VerticalLayoutAlignment="Center"
x:Name="Dialog"
x:Class="Angler.Views.CustomControls.NotifyDialog">
<ContentView BindingContext="{x:Reference Dialog}">
<StackLayout BackgroundColor="White" Padding="10">
<Label Text="{Binding Title}"
Padding="0,10"
Style="{StaticResource ConfirmDialogHeading}"></Label>
<ScrollView BackgroundColor="Transparent">
<Label Text="{Binding Message}"
Style="{StaticResource ConfirmDialogText}"></Label>
</ScrollView>
<Button Text="{Binding OkButton}"
Clicked="OkButtonClicked"
Padding="1"/>
</StackLayout>
</ContentView>
</extra:DialogView>
The contents of the scroll view is edited by an administrator (in several languages) so it can take up a lot of space on devices with a small screen.
So if I set the ProportionalHeight the dialog will not auto size to fit the contents (and potentially look way too large/high). However, if there is a lot of content without ProportionalHeight the dialog will get bigger than the screen - and the user cannot read the entire message or press the button to close the dialog....
Steps to Reproduce
- Just create a dialog with the above XAML and call it with a long text (e.g. with several new lines)
Expected Behavior
That the dialog would not flow outside the actual screen
Actual Behavior
Dialog grows bigger than visual screen - and user can't close it
Platforms
- [x ] Android
- [ x] iOS
Basic Information
- AiForms.SettingsView 1.0.3 (and earlier)
- Xamarin.Forms 4.6.0.847
- Affected Devices: All phones
Any suggestions I may have overlooked would be much appreciated :-)
Metadata
Metadata
Assignees
Labels
No labels