From b53588c32e8831ac00fdc226629a85ed96b68de3 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 28 Dec 2019 12:59:14 +0100 Subject: [PATCH] redid that bugfix that I undid with that other bugfix --- MLEM.Ui/Elements/Panel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Panel.cs b/MLEM.Ui/Elements/Panel.cs index 906f15f..7e3d926 100644 --- a/MLEM.Ui/Elements/Panel.cs +++ b/MLEM.Ui/Elements/Panel.cs @@ -144,8 +144,8 @@ namespace MLEM.Ui.Elements { } public override void DrawEarly(GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, Matrix matrix) { + this.UpdateAreaIfDirty(); if (this.scrollOverflow && this.renderTarget != null) { - this.UpdateAreaIfDirty(); // draw children onto the render target batch.GraphicsDevice.SetRenderTarget(this.renderTarget); batch.GraphicsDevice.Clear(Color.Transparent);