Bug Report B133972
Visible to All Users

ASPxCheckBox wrongly wraps its text when text is left-aligned

created 16 years ago

Setting the width of a checkbox does not work if you set the text align to left. The whole thing seems to shrink and wrap the text. You can prevent the wrapping by setting wrap to false, but the width doesn't change.
Steps to Reproduce:
Set checkbox text align to left and set a width.
Actual Results:
Width not obeyed and text wraps.
Expected Results:
Width obeyed and the actual checkbox element should align to the right.

Comments (2)
Serge (DevExpress Support) 16 years ago

    Hi Graham,
    Could you please send us the ASPx definition of your ASPxCheckBox? This will help us better understand which settings you're using. We just want to test under the same conditions.
    Thanks,
    Serge
    P.S. By the way, it seems you're using an older build of our components (according to the report's Version field). Please visit our version info page, to learn about the most recent versions of our products, and obtain instructions on how to update them.

      As you'll see from the attached project, the left aligned checkbox does not behave how I'd expect. It squashes all the text up. You can get round this by setting wrap to false, but I think this should be set to false by default (as is the case with the standard asp.net components) Also, would it be possible to add the ability to align the actual checkbox part of the component as well as the text? (i.e. TextAlign=Left and CheckAlign=Right). This way you could have the checkbox sit right at the adge of the control, rather than directly after the text.

      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.