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
ysmolski opened this issue Nov 12, 2018 · 5 comments
Open

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

ysmolski opened this issue Nov 12, 2018 · 5 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@ysmolski
Copy link
Member

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
@ysmolski ysmolski 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
Copy link
Contributor

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.

@ysmolski
Copy link
Member Author

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

@agnivade
Copy link
Contributor

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

@ysmolski
Copy link
Member Author

@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
Copy link
Member

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).

@seankhliao seankhliao added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants