Tweak header positioning and scrollpanel scissoring (don't draw contents over the 1px border).

This commit is contained in:
Paul Chote
2010-11-28 13:53:38 +13:00
parent ce5ca9dbca
commit 4bb70f11e9
2 changed files with 14 additions and 14 deletions

View File

@@ -71,7 +71,7 @@ namespace OpenRA.Widgets
WidgetUtils.DrawRGBA(ChromeProvider.GetImage("scrollbar", "down_arrow"),
new float2(downButtonRect.Left + downOffset, downButtonRect.Top + downOffset));
Game.Renderer.EnableScissor(backgroundRect.X, backgroundRect.Y + HeaderHeight, backgroundRect.Width, backgroundRect.Height - HeaderHeight);
Game.Renderer.EnableScissor(backgroundRect.X+1, backgroundRect.Y + HeaderHeight+1, backgroundRect.Width-2, backgroundRect.Height - HeaderHeight-2);
foreach (var child in Children)
child.Draw( wr );