From 6f0e3273b1331894376aefd9db7dd4aa618e5f4f Mon Sep 17 00:00:00 2001 From: gucio321 Date: Wed, 4 Dec 2024 07:42:23 +0100 Subject: [PATCH] as always linting --- SplitLayout.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SplitLayout.go b/SplitLayout.go index 3d8e13ac..0c638ab4 100644 --- a/SplitLayout.go +++ b/SplitLayout.go @@ -96,6 +96,7 @@ func (s *SplitLayoutWidget) Build() { var layout Layout var sashPos float32 + switch s.splitRefType { case SplitRefLeft: sashPos = *s.sashPos @@ -157,7 +158,10 @@ func (s *SplitLayoutWidget) Build() { layout.Build() PopStyle() - // reencode sashPos + s.encodeSashPos(sashPos, availableW, availableH) +} + +func (s *SplitLayoutWidget) encodeSashPos(sashPos, availableW, availableH float32) { switch s.splitRefType { case SplitRefLeft: *s.sashPos = sashPos