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

Add Graphics.Element.scrollContainer #63

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@avh4
Member

avh4 commented Dec 23, 2014

This is a proposal to add the capability to create scrolling regions in UIs built using the Graphics.Element API.

With this change, here is how you would make a 200x300 region containing a vertically-scrolling block of text:

main = plainText "my text..." |> width 200 |> scrollContainer 200 300 

Graphics.Element.scrollContainer as proposed here can also be used to make viewports that scroll horizontally or that scroll both vertically and horizontally.

As far as I know, there is currently no way to achieve this type of effect with the core API.

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz May 11, 2016

Member

I guess we'd just do it in HTML these days.

Member

evancz commented May 11, 2016

I guess we'd just do it in HTML these days.

@evancz evancz closed this May 11, 2016

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