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

Layout combinators to simplify GUI layout. Take 2. #70

Closed
HeinrichApfelmus opened this issue Jan 14, 2014 · 1 comment
Closed

Layout combinators to simplify GUI layout. Take 2. #70

HeinrichApfelmus opened this issue Jan 14, 2014 · 1 comment

Comments

@HeinrichApfelmus
Copy link
Owner

This is essentially a continuation of issue #24 .

The goal of Threepenny is to make GUI development easy, and this also includes the visual aspects of UI design. Unfortunately, HTML and CSS are terrible languages for specifying box layouts.

What we really want is a nice Haskell API that hides the complexities of CSS and offers a nice way to specify layout. The grid, column and row combinators are a good start, but they are currently implemented as CSS tables, which tend to behave unpredictable, especially when content size changes dynamically.

Fortunately, it appears that the CSS 3 offers a new feature, flexbox layout, which apperas to solve most of the layout woes. Flexboxes may be a good start for implementing proper layout combinators in Haskell.

Flexboxes only work in newer browsers, but we could bundle our own browser during deployment #52 .

@HeinrichApfelmus
Copy link
Owner Author

Discussion moved to #98 .

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

No branches or pull requests

1 participant