Skip to content

Commit

Permalink
Merge pull request #144 from ZeroGachis/task/PROD-191-improve-numeric…
Browse files Browse the repository at this point in the history
…-date-input

🐛 Numeric Date Input - Handle low resolution screens
  • Loading branch information
JosselinTILLAY authored Mar 11, 2024
2 parents de0c3ee + 9e9bbdc commit 35750c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion Smartway.UiComponent.Sample/Inputs/Views/Inputs.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
Date="{Binding Date}"/>
<Label Text="{Binding Date, StringFormat='Date selectionnée: {0}'}"/>
<inputs:NumericDateEntry
GlobalFontSize="17"
Margin="70, 0"
DatePlaceholder="{Binding MinimumDate}"
ErrorCommand="{Binding ErrorDateCommand}"/>
Expand Down
10 changes: 5 additions & 5 deletions Smartway.UiComponent/Inputs/NumericDateEntry.xaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<Grid xmlns="http://xamarin.com/schemas/2014/forms"
<StackLayout xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Smartway.UiComponent.Inputs.NumericDateEntry"
x:Name="Self"
HorizontalOptions="Center"
ColumnDefinitions="*, Auto, *, Auto, *">
<Grid.Resources>
Orientation="Horizontal">
<StackLayout.Resources>
<ResourceDictionary>
<Style TargetType="Label">
<Setter Property="FontFamily" Value="OpenSans"/>
Expand All @@ -23,10 +23,10 @@
<Setter Property="MaxLength" Value="2" />
</Style>
</ResourceDictionary>
</Grid.Resources>
</StackLayout.Resources>
<Entry x:Name="FirstEntry" Grid.Column="0" Focused="OnFocusedSelectAllEntryContent"/>
<Label Grid.Column="1" Text="/"/>
<Entry x:Name="SecondEntry" Grid.Column="2" Focused="OnFocusedSelectAllEntryContent"/>
<Label Grid.Column="3" Text="/"/>
<Entry x:Name="ThirdEntry" Grid.Column="4" Focused="OnFocusedSelectAllEntryContent"/>
</Grid>
</StackLayout>

0 comments on commit 35750c4

Please sign in to comment.