Skip to content

Commit

Permalink
SpltiLayout: reduce unnecessary calls to GetAvailableRegion
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Dec 4, 2024
1 parent 0dbdb2f commit 5922430
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions SplitLayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ func (s *SplitLayoutWidget) Build() {

switch s.direction {
case DirectionHorizontal:
_, availableH := GetAvailableRegion()
if sashPos >= availableH {
sashPos = availableH
}
Expand All @@ -141,7 +140,6 @@ func (s *SplitLayoutWidget) Build() {
),
}
case DirectionVertical:
availableW, _ := GetAvailableRegion()
if sashPos >= availableW {
sashPos = availableW
}
Expand Down

0 comments on commit 5922430

Please sign in to comment.