-
Notifications
You must be signed in to change notification settings - Fork 20
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
Flexbox does not render borders correctly #8
Comments
Hello, thanks for the fast reply, though it appears as if the issue still isn't resolved. var styleContent = lipgloss.NewStyle().
BorderStyle(lipgloss.RoundedBorder()).Align(lipgloss.Center)
func loadingModule() model {
return model{
flexbox: stickers.NewFlexBox(0, 0).SetStyle(styleContent),
}
}
func (m model) Init() tea.Cmd {
m.flexbox.AddRows([]*stickers.FlexBoxRow{
m.flexbox.NewRow().AddCells(
[]*stickers.FlexBoxCell{
stickers.NewFlexBoxCell(1, 1),
stickers.NewFlexBoxCell(1, 1),
},
),
})
return nil
}
func (m model) View() string {
m.flexbox.Row(0).Cell(0).SetContent("Content")
m.flexbox.Row(0).Cell(1).SetContent("Content")
return m.flexbox.Render()
} Hope this helps |
Ah, I see, I fixed Please pull new version and give it a go, you will note that style inheritance has been changed as well, you will want to check that out if you intended to pass down border style to cells ⚡ |
@Cro0ksy is all well rendered, we can close this one? |
Works perfectly, thanks a lot! |
Hello,
no matter how i attempt to tweak the boxes, there seems to be no way to get them to render the borders on all 4 sides. Is this just a problem i am having, or is this not supported?
I figured it cant draw the right border because the Flexbox always takes 100% width, even if this means not showing other content that would be on the side. Is there a way to prevent this?
The text was updated successfully, but these errors were encountered: