1
0
Fork 0

(svn r18164) -Change: make dropdown 'right' align to the opening widget with RTL

release/1.0
rubidium 2009-11-18 12:31:09 +00:00
parent b4e9cb3ca3
commit 76a5f4f8cd
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, u
if (auto_width) width = max(width, max_item_width);
Point dw_pos = {w->left + wi_rect.left, top};
Point dw_pos = { w->left + (_dynlang.text_dir == TD_RTL ? wi_rect.right + 1 - width : wi_rect.left), top};
Dimension dw_size = {width, height};
new DropdownWindow(w, list, selected, button, instant_close, dw_pos, dw_size, wi_colour, scroll);
}