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

🐛 [BUG] - Shrink/resize the tools window at the maximum to just fit the content of the toolbar #1893

Open
lobre opened this issue Nov 19, 2024 · 2 comments
Labels

Comments

@lobre
Copy link

lobre commented Nov 19, 2024

Description

When I only show the "tools window" and try to resize it to the minimum possible width, it does not go as far as just fitting the toolbar content.

image

You see here there is horizontal blank space while if you take a tool such as Pinta, it will naturally shrink to fit the content.

image

Expected result

It shrinks horizontally to fit the content of the toolbar.

Actual result

There is a gap on the right and the toolbar cannot be resized more.

Steps to reproduce

1. Click on the "Windows" menu and deselect everything except "Tools".
2. Grab the resize handle for the "Tools" window, and shrink it at the maximum to the left.

This is not a big issue and there might be reasons. I guess there is a hard-coded minimum width for other potentially larger widgets. But for people who like minimalist interfaces, it would be a nice addition to be able to shrink to fit the content.

Video or Image Reference

No response

System Information

- Pencil2D version: 0.7.0 (App Image)
- Operation system: Linux
- Drawing tablet: none
@lobre lobre added the Bug label Nov 19, 2024
@lobre
Copy link
Author

lobre commented Nov 19, 2024

I realize the same happens if I try to position the toolbar horizontally at the top.

image

@Jose-Moreno
Copy link
Member

@lobre Hi Lobric Thank you for your report! Indeed this has been an issue for a long time. From what I know it seems to stem from how the Qt Framework widgets work.

@MrStevns since you have worked on the UI recently and we briefly discussed the toolbox widget "width" in the past, when you're available could you perhaps provide a bit more insight in order to understand this issue better? Thanks in advance!

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

No branches or pull requests

2 participants