-
Notifications
You must be signed in to change notification settings - Fork 9
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
GroupPanel type woes #2
Comments
Hi, Off the top of my head, here's an idea for the first case: theHorizontalLayout is Sequential(
Parallel((labels map add):_*), Parallel((fields map add):_*)
) It might be possible to add your own implicit like implicit def addAll[A <: G](comps: Seq[Component]): Seq[InGroup[A]] = comps map add to enable your original code to work as is. The (badly named, sorry) By the way, note that Also note that the underlying group layout is fully exposed through the |
and
So I was wondering if not the best solution is to define the
I haven't played this through, but perhaps it's an easy solution. |
I am regularly running into trouble trying to figure out how to massage my components to fit into the GroupPanel's groups. I have come up with all sorts of crazy type conversions, and once again I forgot how I managed. It would be great to have an example that shows how to accomplish the IMO standard case of creating a group from a collection of widgets:
This drives me nuts.
InParallel
andInSequential
are private types, so the straight forward: InParallel
doesn't work.Am I blind not to see the solution?
The text was updated successfully, but these errors were encountered: