Position calculates the position to center the dialog
()
| 391 | |
| 392 | // Position calculates the position to center the dialog |
| 393 | func (d *toolConfirmationDialog) Position() (row, col int) { |
| 394 | dialogWidth, _ := d.dialogDimensions() |
| 395 | renderedDialog := d.View() |
| 396 | dialogHeight := lipgloss.Height(renderedDialog) |
| 397 | return CenterPosition(d.Width(), d.Height(), dialogWidth, dialogHeight) |
| 398 | } |
no test coverage detected