Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Marc
Marc
@corpsmoderne@mamot.fr  路  activity timestamp 1 hour ago

bump this because I'm still puzzled... 馃憜 #rustlang #ratatui .
I have an arbitrarily long Vec of Lines (logs), of which I want to display only the Nth lasts in a Paragraph... I don't know the height of the Paragraph as it takes all the available space in a "cell" of a layout...
if I use .scroll((logs.len() as u16, 0)) , no line is displayed, I should substrat the number of lines to display... which I don't know 馃

  • Copy link
  • Flag this post
  • Block
Bobulous :rust: :codeberg:
Bobulous :rust: :codeberg:
@bobulous@fosstodon.org replied  路  activity timestamp 41 minutes ago

@corpsmoderne Perhaps @orhun might know how to help.

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.1-alpha.33 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct