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

x/playground: add ability to resize the output box [automatically] #28734

Open
ysmolsky opened this issue Nov 12, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@ysmolsky
Copy link
Member

commented Nov 12, 2018

On small screens like 11-13" laptop's the output box is somewhat small. I would like to be able to adjust its height.

Also when output is big, I want to be able to see all of it without scrolling each time after running the program. This would mean to add some controls like buttons on the right or make the edge between code and output boxes draggable.

As alternative solution would be to define the maximum allowed height of the output box and resize it depending on the output as mentioned here #15163. That might be a pie in the sky though.

I am sure this was raised before but I could not find it.

@gopherbot gopherbot added this to the Unreleased milestone Nov 12, 2018

@ysmolsky ysmolsky changed the title x/playground: add ability to resize the code and output area ratio x/playground: add ability to resize the output box [automatically] Nov 12, 2018

@agnivade

This comment has been minimized.

Copy link
Member

commented Nov 12, 2018

Are you talking about the embedded playground in golang.org ?

Then perhaps something similar to the little expander icon at the bottom-right of the text box which you can use to resize the code box. We can apply the same for the output-box.

@ysmolsky

This comment has been minimized.

Copy link
Member Author

commented Nov 12, 2018

I meant https://play.golang.org/, but we can project it to embedded version too.

@agnivade

This comment has been minimized.

Copy link
Member

commented Nov 12, 2018

Ah, you mean like a horizontal expander thing at the border of the yellow and white box ?

@ysmolsky

This comment has been minimized.

Copy link
Member Author

commented Nov 13, 2018

@agnivade, yes in the case of UI element. But I wonder how badly do we want to resize output box automatically depending on the size of output.

@andybons

@andybons

This comment has been minimized.

Copy link
Member

commented Nov 14, 2018

Seems like a solution could be to allow adjusting the split between the code and output. When you hover over the split point it shows a resize cursor (cursor: row-resize) and allows you to adjust it (while not saving between reloads).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.