docs: add note about scrollbar state content length (#1077)

This commit is contained in:
May 2024-05-01 02:37:43 -04:00 committed by GitHub
parent f4637d40c3
commit e95230beda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,6 +29,11 @@ use crate::{prelude::*, symbols::scrollbar::*};
/// └─────────── begin
/// ```
///
/// # Important
///
/// You must specify the [`ScrollbarState::content_length`] before rendering the `Scrollbar`, or
/// else the `Scrollbar` will render blank.
///
/// # Examples
///
/// ```rust