Bug Report Q468799
Visible to All Users

In-place cxRichEdit - The width taken into OptionsBehavior.EditAutoHeight calculations is two pixels wider than the editor

created 11 years ago

Hi,
I'm using Delphi XE3 with DevExpress 12.2.9 on Windows 8.1.
I have a few RichEdit columns in one of my grids with OptionsView.CellAutoHeight = True and OptionsView.ColumnAutoWidth = True and I noticed that the grid sometimes doesn't calculate the height correctly. If I convert the columns to normal columns they work just fine.
You can see this in the attached demo.
If you look at the cell in the only column that has a caption ("LD") and the second row, and resize the form gently to make it wider/narrower, you'll notice two different behaviours:
If you clicked the "Generate for RichEdit columns" button, sometimes you only see "504 UT" and sometimes you see "504 UT 404 UT". It only disappears for a few pixels, then shows up correct again.
If you clicked on the "Generate for normal columns" button you always see "504 UT 404 UT", no matter how you resize the form.
Is there any way to force the grid to recalculate the height so it paints correctly? We use RichEdit columns in one of our grids and in printouts. I haven't tested yet if this works correctly when printing.
Thanks in advance,
Jon

Comments (2)
DevExpress Support Team 11 years ago

    Hello,
    Thank you for your message. I have reproduced the described behavior and forwarded this ticket to our developers for research.
    By the way, would you mind us making this ticket Published?

      Thank you. No, I don't mind.

      Answers approved by DevExpress Support

      created 11 years ago (modified 11 years ago)

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.