I have a StackLayout with a Label and SfTextInputLayout with an Editor inside. The orange background is the Label, the thin blue line is the spacing between the items as part of the StackLayout, and the red is the SfTextInputLayout.
I have set ShowHint=False, ReserveSpaceForAssistiveLabels=False, ContainerType=Outlined, with CornerRadius=3.
I have tried setting both padding and margin of both the SfTextInputLayout and the Editor to zero to no avail. I presume this is space reserved for the input layout Hint, but I am not using the built-in hint so I do
<inputLayout:SfTextInputLayout
ShowHint="False"
ReserveSpaceForAssistiveLabels="False"
ContainerType="Outlined" OutlineCornerRadius="3"
InputViewPadding="{OnPlatform Android='11,0,11,0',
iOS='11,6,11,6',
UWP='11,6,11,6'}">
<Editor />
</inputLayout:SfTextInputLayout> |
<inputLayout:SfTextInputLayout
ShowHint="False"
ReserveSpaceForAssistiveLabels="False"
ContainerType="Outlined" OutlineCornerRadius="3"
InputViewPadding="{OnPlatform Android='11,0,11,0',
iOS='11,6,11,6',
UWP='11,6,11,6'}">
<Editor />
</inputLayout:SfTextInputLayout> |
I don't want to change the input view background, nor do I want to change the padding of the text inside the Editor. I want to remove the space OUTSIDE the Editor but still within the SfTextInputLayout view. I want no red area outside the text layout outline.
Hi Andrew Hoke, We have fixed the “Top padding not removed when hint label is not added” issue and the fix is included in our weekly NuGet of July 13, 2021. NuGet Version: 19.2.0.47 We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. Regards, Sridevi S. |
I have installed 19.2.0.47 and can confirm the issue has been resolved. Thank you!