Skip to content

Commit

Permalink
as always linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Dec 4, 2024
1 parent 5922430 commit 6f0e327
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SplitLayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func (s *SplitLayoutWidget) Build() {
var layout Layout

var sashPos float32

switch s.splitRefType {
case SplitRefLeft:
sashPos = *s.sashPos
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f0e327

Please sign in to comment.