SfTextBoxExt with textwrap does not resize properly
I have a SfTextBoxExt control that has the following properties:
MaxLines="3", MaxCharacters="355", AutoNext="false", TextWrapping="TextWrapping.Wrap", AcceptReturn="true"
When entering text in the textbox and the text wraps as new lines are entered, the textbox height is being re-calculated properly when the text is cleared. However, if the textbox height is expanded and the splitter of the parent grid is resized, the textbox height does not correctly re-size itself. The expected behavior is that the textbox always correctly re-calculates the height accordingly.
Attached is a video illustrating the problem.
Attachment: Recording_20250403_141722_6a622c04.zip
Hi Josepth Badrouk,
Thank you for sharing the details and the video regarding the issue with the SfTextBoxExt control not resizing correctly after the parent grid's splitter is adjusted.
Based on our review of the behavior shown in your recording, and the layout response after clearing the input, it appears that the issue might not be isolated to SfTextBoxExt alone. From the UI structure and animations, we suspect that the control might actually be wrapped inside a TextInputLayout
To proceed accurately and avoid any misdiagnosis, we’d like to validate this with the actual XAML structure. Could you kindly share a minimal sample of your layout or code that includes:
- The exact declaration of the SfTextBoxExt with its applied properties
- The immediate parent layout/container
- Whether it's embedded within any additional layout components (e.g., TextInputLayout, GridSplitter, etc.)
This will help us reproduce the scenario as closely as possible to your setup and determine whether the issue lies in the control itself or how it's hosted.
Looking forward to your response.
Regards,
Kamalesh P
The SfTextBoxExt is embedded within a SfTextInputLayout. Without the SfTextInputLayout, this problem does not persist. However, this should still work even if embedded within a SfTextInputLayout. Here is the layout
<Grid HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<syncfusion:SfTextInputLayout>
<syncfusion:SfTextBoxExt MaxLines="3" MaxLength="355" TextWrapping="Wrap" AcceptsReturn="True" Margin="12,0,12,4">
</syncfusion:SfTextBoxExt>
</syncfusion:SfTextInputLayout>
</Grid>
Hi Joseph,
We have logged the bug for the reported issue "SfTextInputLayout (Outlined) Does Not Shrink After Text Removal in SfTextBoxExt". This fix will be included in the upcoming weekly release on April 29, 2025.
Link: 66944
Note: The provided feedback link is private, and you need to log in to view this feedback.
If you have any more specifications or scenarios to be tested, you can add them as a comment in the portal.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and work reprioritization.”
Regards,
Kamalesh P
Hi Joseph,
We apologize for the inconvenience caused. We are unable to include the fix as promised in the release scheduled for April 29, 2025. At present, a custom assembly has been created for version 29.1.39. Please find the fixed assemblies in the attachment.
Assembly version: 29.1.39
Please note that we have created these assemblies for version 29.1.39 specifically, to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.
Note: Please refer to the below link to apply the custom assembly
https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget
We will include the fix in our upcoming weekly release on May 06, 2025. We appreciate your patience until then.
Regards,
Kamalesh P
Attachment: Assembly_74845bed.zip
Thank you for the help and we will reach out if we encounter any issues.
Hi Josepth,
We have included a fix for the reported issue "SfTextInputLayout (Outlined) Does Not Shrink After Text Removal in SfTextBoxExt" in our latest weekly NuGet release, v29.1.41, which is now available for download (NuGet).
Please get in touch with us if you require any further assistance; as always, we would be happy to help you.
Regards,
Kamalesh P
- 6 Replies
- 2 Participants
- Marked answer
-
JB Josepth Badrouk
- Apr 3, 2025 06:19 PM UTC
- May 6, 2025 12:50 PM UTC