Skip to content

Create constructors for Padding that make it more clear #798

Closed
@joshka

Description

Ahh my confusion was that this was bottom padding 😀
Good idea about adding better constructors

Originally posted by @joshka in #783 (comment)


Add e.g.

impl Padding {
  fn top(height: u16) -> Padding {}
  fn bottom(height: u16) -> Padding {}
  // etc. (left, right)

Metadata

Assignees

No one assigned

    Labels

    Effort: Good First IssueGood for newcomers without much Rust or Ratatui experiance. Apply only if willing to help implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions