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

Hide settings panel differently #6937

Closed
borondics opened this issue Nov 26, 2024 · 4 comments
Closed

Hide settings panel differently #6937

borondics opened this issue Nov 26, 2024 · 4 comments

Comments

@borondics
Copy link
Member

This might belong to orange-canvas-core or orange-widget-base. Sorry if I am adding the issue in the wrong place.

What's your use case?

Many widgets have a functionality to hide the settings panel on the left to be able to maximize the plot area. This is now a multi-step process, because the settings panel simply disappears and this makes the widget window smaller, which needs to be resized by the user.
image

Actually, I just realized that this behaviour (at least on MacOS 14.6.1) is not consistent when the window is maximized or not (see video below).

a.mov

What's your proposed solution?

Would it be an easy thing to change the behaviour of the "hide settings panel" functionality so that the widget window size remains the same and the plot area fills up the space previously taken by the settings panel?
image

In other words, it would be great to have the full screen behavior in both maximized and non-maximized cases.

Are there any alternative solutions?
It is possible to do this manually in multiple steps.

@markotoplak
Copy link
Member

Actually what Orange currently does for non-maximized windows was carefully thought about and additional steps were taken for it to be this way. The goal was not to change the aspect ration of the visualization.

What you propose changes aspect ratios (which we can not avoid if maximized, because it is maximized).

@borondics
Copy link
Member Author

Yeah, I see your point of the aspect ratio of the plot and indeed, my suggestion would change that.

However, what I would consider in this case is what happens currently after you hide the panel? Do you leave the widget window untouched or you change the window size? Then I have two questions: first, if you don't change the window, why did you hide the panel, second, if you do change it, how do you make sure the aspect ratio stays the same as before...

One could think about calculating the aspect ratio of the plot before the change and then using this to enlarge the window automatically?

@markotoplak
Copy link
Member

What happens now is that only the control area disappears and that is it. This nicely supports uses in setting the plot however they want and then they can hide the control area and still expect that the plot did not change.

This was designed as a way for the users to have more active (smaller) windows on a screen where they can show/hide control panels at will, which should not affect visualizations or even their positions.

It was not designed as a way to see the biggest possible plots; that is what maximizing a widget is for.

@markotoplak
Copy link
Member

So, basically, we have two different reasons for hiding control area:

  1. Enabling more widgets on the screen at the same time.
  2. Having as big graphs as possible.

The current behaviour aims to optimize (1). This, I think is a better default.

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

No branches or pull requests

2 participants