From a723f4997aaaf4a50b6cda000dc7dc6289ca3d66 Mon Sep 17 00:00:00 2001 From: luo-cheng-xi Date: Wed, 28 Aug 2024 19:31:42 -0400 Subject: [PATCH] docs: add extra explanation for OptionSetMaxDetailRow. The param must be calculated by developer prudently. --- progressbar.go | 1 + 1 file changed, 1 insertion(+) diff --git a/progressbar.go b/progressbar.go index 6194e2b..3ac404c 100644 --- a/progressbar.go +++ b/progressbar.go @@ -314,6 +314,7 @@ func OptionShowDescriptionAtLineEnd() Option { } // OptionSetMaxDetailRow sets the max row of details +// the row count should be less than the terminal height, otherwise it will not give you the output you want func OptionSetMaxDetailRow(row int) Option { return func(p *ProgressBar) { p.config.maxDetailRow = row