Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When specifying background, the box is not fully painted #20

Open
kigster opened this issue Mar 8, 2023 · 0 comments
Open

When specifying background, the box is not fully painted #20

kigster opened this issue Mar 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kigster
Copy link

kigster commented Mar 8, 2023

Describe the problem

Given the following configuration for the TTY::Box.frame:

{
  align:        :left,
  border:       :round,
  enable_color: true,
  padding:      1,
  style:        {
    bg:     :yellow,
    fg:     :black,
    border: {
      fg: :red,
      bg: :yellow
    },
  },
  width:        114
}

The following is printed to my iTerm window:

image

Steps to reproduce the problem

style_args = {
  align:        :left,
  border:       :round,
  enable_color: true,
  padding:      1,
  style:        {
    bg:     :yellow,
    fg:     :black,
    border: {
      fg: :red,
      bg: :yellow
    },
  },
  width:        114
}

TTY::Box.frame(content, **style_args, &block)

Actual behavior

The window is printed, but the background does not fully pain the rectangle.

Expected behaviour

Full rectangle of the same background color.

Describe your environment

  • OS version:
  • Ruby version:
  • TTY::Box version:
@kigster kigster added the bug Something isn't working label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant