From 5922430e7b41584c828fde73e2bec9bb46680454 Mon Sep 17 00:00:00 2001 From: gucio321 Date: Wed, 4 Dec 2024 07:40:03 +0100 Subject: [PATCH] SpltiLayout: reduce unnecessary calls to GetAvailableRegion --- SplitLayout.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/SplitLayout.go b/SplitLayout.go index 37297c60..3d8e13ac 100644 --- a/SplitLayout.go +++ b/SplitLayout.go @@ -128,7 +128,6 @@ func (s *SplitLayoutWidget) Build() { switch s.direction { case DirectionHorizontal: - _, availableH := GetAvailableRegion() if sashPos >= availableH { sashPos = availableH } @@ -141,7 +140,6 @@ func (s *SplitLayoutWidget) Build() { ), } case DirectionVertical: - availableW, _ := GetAvailableRegion() if sashPos >= availableW { sashPos = availableW }