Maui.FreakyControls icon indicating copy to clipboard operation
Maui.FreakyControls copied to clipboard

Handle custom fontsize values in the TextInputLayouts control

Open sk1llsh0t opened this issue 9 months ago • 12 comments

Description

If I enter larger number values into the FontSize property of the TextInputLayouts control, the title/placeholder label doesn't resize and position accordingly between the placeholder location and the title location. The app I'm creating is being used for people with accessibility issues in mind where the entry fields/labels need to be large.

Code

<freakyControls:FreakyTextInputLayout Title="Outlined TextInputLayout" BorderCornerRadius="10" BorderStrokeThickness="2" BorderType="Outlined" FontSize="40" //CHANGING THIS VALUE TO SOMETHING LARGER BREAKS THE LABEL />

Expected Behavior

Label should resize and position itself proportionally to match the resized entry control.

Actual Behavior

The title/placeholder label is not sized and positioned proportionally to the larger entry size.

Basic Information

Screenshots

The placeholder text is too small and should match more closely to the font size of the entry field Screenshot 2024-05-17 at 3 44 54 PM

When text is entered, the title fontsize should proportionally be larger and higher up to hover over the border line Screenshot 2024-05-17 at 3 45 36 PM

Reproduction Link

I just used the sample app that comes in the freakycontrols repo and changed the fontsize value

sk1llsh0t avatar May 17 '24 19:05 sk1llsh0t