Mission description scrolls to the top whenever a new mission is
selected to avoid out-of-bounds scrollbar
This commit is contained in:
noyanbaykal
2014-06-19 13:12:12 -04:00
parent e8473990ef
commit 0ad767a05e

View File

@@ -87,6 +87,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
text = WidgetUtils.WrapText(text, description.Bounds.Width, descriptionFont);
description.Text = text;
description.Bounds.Height = descriptionFont.Measure(text).Y;
descriptionPanel.ScrollToTop();
descriptionPanel.Layout.AdjustChildren();
}