We're having an issue with the RadButton (2013Q1) whereby the text wrapping is failing when an image is included in the button.
It appears that the word wrap boundaries are calculated as if the image wasn't there, which is causing words to be cut off at certain button widths. The right border also appears to be getting overwritten.
To reproduce, create a RadButton on a form with the below settings. The image is any 32x32 image. Note that the word wrap shows "The Quick Bro" / "Fox" instead of "The Quick" / "Brown Fox". (Image attached.)
Does anybody know of any workarounds or fixes for this? Right now we're probably just going to remove the images entirely, since we can't restrict the text length for the buttons.
Thanks,
Dave
It appears that the word wrap boundaries are calculated as if the image wasn't there, which is causing words to be cut off at certain button widths. The right border also appears to be getting overwritten.
To reproduce, create a RadButton on a form with the below settings. The image is any 32x32 image. Note that the word wrap shows "The Quick Bro" / "Fox" instead of "The Quick" / "Brown Fox". (Image attached.)
Does anybody know of any workarounds or fixes for this? Right now we're probably just going to remove the images entirely, since we can't restrict the text length for the buttons.
this.radButton1.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radButton1.Image = global::TestPopup.Properties.Resources.Image32x32;
this.radButton1.Location = new System.Drawing.Point(13, 13);
this.radButton1.Size = new System.Drawing.Size(131, 44);
this.radButton1.Text = "The Quick Brown Fox";
this.radButton1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.radButton1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.radButton1.TextWrap = true;
Thanks,
Dave