Fix scroll offsets

This is not a full fix, it merely restores the functionality
already present. The ScrollPanelWidget does not work right if
Align is set to Bottom but ScrollToBottom() isn't called after
adding items and there's not enough content to scroll.
This commit is contained in:
Pavlos Touboulidis
2014-04-26 17:21:42 +03:00
parent c099e6d09b
commit af48626020

View File

@@ -151,7 +151,7 @@ namespace OpenRA.Widgets
public bool ScrolledToBottom
{
get { return ListOffset == Math.Min(0, Bounds.Height - ContentHeight); }
get { return ListOffset == Math.Min(0, Bounds.Height - ContentHeight) || ContentHeight <= Bounds.Height; }
}
public void ScrollToItem(string itemKey)