Skip to content

Commit

Permalink
fix(group): fix off by one at top for overflowed content
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Nov 26, 2024
1 parent 70db481 commit c9016a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion form.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (f *Form) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
f.selector.Range(func(_ int, group *Group) bool {
if group.fullHeight() > msg.Height {
group.WithHeight(msg.Height)
group.WithHeight(msg.Height - 1)
}
return true
})
Expand Down

0 comments on commit c9016a4

Please sign in to comment.