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

Grid is opaque #4

Open
Slamy opened this issue Apr 1, 2023 · 5 comments
Open

Grid is opaque #4

Slamy opened this issue Apr 1, 2023 · 5 comments

Comments

@Slamy
Copy link

Slamy commented Apr 1, 2023

I'm not yet fully sure if this is an issue of this crate or a limitation of table::Table.
The grid itself is opaque and therefore it is not possible to have something behind it, like a background image.
I create this issue here to create awareness. Maybe it is even fixable.

@MoAlyousef
Copy link
Contributor

It's a peculiarity of the Table widget.
I'm planning to also add another grid widget which uses Taffy's grid for the layout.

@Slamy
Copy link
Author

Slamy commented Apr 1, 2023

I could solve my problem very fast now with a different approach. I've just used a vertical Pack with multiple horizontal Packs full of same sized Frames. I realize that this is not as flexible as your approach and will not suit every situation but for my case it is sufficient as I needed a simple grid of fixed sized cells
So using Packs might also be a viable solution for some cases.

@MoAlyousef
Copy link
Contributor

Indeed a pack of packs or flex of flexes should cover most use cases already. It's what the calculator example in fltk-rs uses :)

@Slamy
Copy link
Author

Slamy commented Apr 1, 2023

I'm terribly sorry for opening this issue then. :-(
But I guess the problem might be still a problem.

@MoAlyousef
Copy link
Contributor

No problem. I’ll keep the issue open for people who might run into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants