From f83c74ffdeb538df1b3735fe0e61a08e6323d3ae Mon Sep 17 00:00:00 2001 From: cardoso Date: Fri, 22 Jan 2021 15:14:24 -0300 Subject: [PATCH] Fix layout/viewport not updated when panel is closed from UI button --- d2game/d2player/game_controls.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/d2game/d2player/game_controls.go b/d2game/d2player/game_controls.go index 975b90d3..a2b321e4 100644 --- a/d2game/d2player/game_controls.go +++ b/d2game/d2player/game_controls.go @@ -621,6 +621,7 @@ func (g *GameControls) togglePartyPanel() { } func (g *GameControls) onCloseHeroStatsPanel() { + g.updateLayout() } func (g *GameControls) toggleLeftSkillPanel() { @@ -642,6 +643,7 @@ func (g *GameControls) toggleQuestLog() { } func (g *GameControls) onCloseQuestLog() { + g.updateLayout() } func (g *GameControls) toggleHelpOverlay() { @@ -659,6 +661,7 @@ func (g *GameControls) toggleInventoryPanel() { } func (g *GameControls) onCloseInventory() { + g.updateLayout() } func (g *GameControls) toggleSkilltreePanel() { @@ -666,6 +669,7 @@ func (g *GameControls) toggleSkilltreePanel() { } func (g *GameControls) onCloseSkilltree() { + g.updateLayout() } func (g *GameControls) openEscMenu() {