Completed
Last Updated: 15 Aug 2017 10:20 by ADMIN
ADMIN
Dimitar
Created on: 27 Feb 2017 12:46
Category: CommandBar
Type: Bug Report
1
FIX. CommandBarDropDownButton - when used with RightToLeft layout the popup position is wrong.
To reproduce:
- Run the attached project, maximize the form and click the drop-down buttons.

Workaround:
commandBarDropDownButton3.DropDownMenu.PopupOpening += DropDownMenu_PopupOpening;


private void DropDownMenu_PopupOpening(object sender, CancelEventArgs args)
{
    var e = args as RadPopupOpeningEventArgs;
    var ownerElement = (sender as RadDropDownMenu).OwnerElement;
    var loc = ownerElement.ElementTree.Control.PointToScreen(ownerElement.ControlBoundingRectangle.Location);
    loc.Y += ownerElement.ControlBoundingRectangle.Height;
    loc.X -=  ((sender as RadDropDownMenu).Width - ownerElement.ControlBoundingRectangle.Width);
    e.CustomLocation = loc;

}
Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments