Completed
Last Updated: 29 Jan 2015 10:49 by ADMIN
ADMIN
Paul
Created on: 06 May 2013 08:32
Category: Buttons
Type: Bug Report
2
FIX. RadSplitButton - ArrowButton gets overlapped when image is inserted to the ActionButton
When image is being inserted to the ActionButton in RadSplitButton the ArrowButton might get overlaped if the text of the ActionButton is very long.

Workaround is to subtract the width of the image from the width of the text manually.

int actionButtonWidth = radSplitButton1.DropDownButtonElement.ActionButton.Size.Width;
int imageWidth = 40; // Sample rate should be equal to the width of the image in pixels

int desiredTextWidth = actionButtonWidth - imageWidth;

radSplitButton1.DropDownButtonElement.ActionButton.TextElement.MaxSize = new Size(desiredTextWidth, 0);

radSplitButton1.DropDownButtonElement.ActionButton.TextWrap = true;
0 comments