Skip to content

Commit 1b6c3ef

Browse files
committed
fixup! Fix off-by-one error when calculating popup panel dimensions
1 parent f98d6ad commit 1b6c3ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gui/controllers/helpers/confirmation_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (self *ConfirmationHelper) getPopupPanelDimensionsAux(contentWidth int, con
119119
x0, y0, _, _ := parentPopupContext.GetView().Dimensions()
120120
x0 += 2
121121
y0 += 1
122-
return x0, y0, x0 + panelWidth, y0 + panelHeight + 1
122+
return x0, y0, x0 + panelWidth - 1, y0 + panelHeight - 1
123123
}
124124
return width/2 - panelWidth/2,
125125
height/2 - panelHeight/2 - panelHeight%2,

0 commit comments

Comments
 (0)