[DevExpress Support Team: CLONED FROM Q257530: Add the capability to resize control based on own content size]
The auto sizing feature of the RichEdit control works fine but it seems to be very buggy when used in combination with different LayoutControl situations. Let's say we'd like to create a messaging module. On top we have a grid (or banded grid or something different) that shows existing messages. At the bottom I'd like to put a auto-sizing RichEdit control to reply to the current conversation.
You can see a screenshot attached where I have modified your example in this way. The LayoutControl does not adapt to the RichEdit control's changed size + When adding text into the RichEdit control it grows beyond the window border at the bottom.
We have closed this ticket because another page addresses its subject:
Provide a capability to change the RichEditControl size automatically based on its content when the control is located in LayoutControlA RichEditControl is not sized property in a LayoutControl
Answers approved by DevExpress Support
Hi,
In your screenshot, I see that you set the RichEditControl.ActiveViewType property to Simple View, specified the AutoSizeMode property and placed RichEditControl into LayoutControl. Please correct me if I missed something.
A LayoutControl does not provide the built-in mechanism to resize a layout group to fit the autosized RichEditControl at the moment. We already have an inquiry to support this scenario: Provide the capability to change the RichEditControl size automatically based on its content when the control is located in LayoutControl
In the meantime, you can utilize a workaround from the How to auto size layout items with RichEditControl in LayoutControl thread.
I hope this information helps. Should you have difficulties while implementing this workaround, create a separate thread and describe the issue you faced in detail. We will do our best to help you.