@@ -199,12 +199,8 @@ func (p *permissionDialogCmp) render() string {
199199
200200 // Add some padding to the content lines
201201 contentHeight := contentLines + 2
202โ if contentHeight < minContentHeight {
203โ contentHeight = minContentHeight
204โ }
205โ if contentHeight > maxContentHeight {
206โ contentHeight = maxContentHeight
207โ }
202+ contentHeight = max(contentHeight, minContentHeight)
203+ contentHeight = min(contentHeight, maxContentHeight)
208204 p.contentViewPort.Height = contentHeight
209205
210206 p.contentViewPort.SetContent(renderedContent)