File diff r16430:b3f65f9bc976 → r16431:ec558deca9d7
src/widgets/dropdown.cpp
Show inline comments
 
@@ -410,13 +410,13 @@ void ShowDropDownList(Window *w, DropDow
 
			max_item_width += WD_VSCROLLBAR_WIDTH;
 
		}
 
	}
 

	
 
	if (auto_width) width = max(width, max_item_width);
 

	
 
	Point dw_pos = { w->left + (_dynlang.text_dir == TD_RTL ? wi_rect.right + 1 - width : wi_rect.left), top};
 
	Point dw_pos = { w->left + (_current_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);
 
}
 

	
 
/**
 
 * Show a dropdown menu window near a widget of the parent window.