@@ -229,9 +229,9 @@ func (s *Session) Cursor() *tea.Cursor {
229229// Draw implements [Dialog].
230230func (s *Session) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
231231 t := s.com.Styles
232− width := max(0, min(defaultDialogMaxWidth, area.Dx()))
233− height := max(0, min(defaultDialogHeight, area.Dy()))
234− innerWidth := width - t.Dialog.View.GetHorizontalFrameSize() - 2
232+ width := max(0, min(defaultDialogMaxWidth, area.Dx()-t.Dialog.View.GetHorizontalBorderSize()))
233+ height := max(0, min(defaultDialogHeight, area.Dy()-t.Dialog.View.GetVerticalBorderSize()))
234+ innerWidth := width - t.Dialog.View.GetHorizontalFrameSize()
235235 heightOffset := t.Dialog.Title.GetVerticalFrameSize() + titleContentHeight +
236236 t.Dialog.InputPrompt.GetVerticalFrameSize() + inputContentHeight +
237237 t.Dialog.HelpView.GetVerticalFrameSize() +