terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Set minimum Sizes for windows

Open elementaryBot opened this issue 8 years ago • 5 comments

you can resize files window to make it really small. i think there should be minimum allowed size for files window. we should not allow user to be able to do this. see attachment

Launchpad Details: #LP1409354 Marek Doležel - 2015-01-10 22:37:19 +0000

elementaryBot avatar Apr 26 '17 16:04 elementaryBot

I am not in favour of restricting user choice unnecessarily, if nothing permanently bad happens.

Launchpad Details: #LPC Jeremy Wootten - 2015-01-11 12:54:49 +0000

elementaryBot avatar Apr 26 '17 16:04 elementaryBot

Looks like this has actually gotten worse, so now I can make it so small that I can't even see all of the widgets, same goes for pantheon-terminal, which really should not be the case. Switchboard in contrast has a sane minimum size, where everything is still visible, see the attached screenshot

Launchpad Details: #LPC Fabian Thoma - 2015-10-18 11:52:26 +0000

elementaryBot avatar Apr 26 '17 16:04 elementaryBot

I have to agree with Fabian. It doesn't make sense to allow the window to get so small that it causes weird glitches like that or that the app isn't even usable

Launchpad Details: #LPC Daniel Fore - 2015-10-19 18:39:45 +0000

elementaryBot avatar Apr 26 '17 16:04 elementaryBot

Any suggestions as to a what a suitable minimum size would be? What is 'usable' depends on e.g. how long a path name is in the location bar and how many bookmarks you have. I agree there should not be any visual glitches , though. I could not get the current trunk (r1962) to reproduce those in the attached image or become as small, but it was possible to get the full-screen button to overlap the pathbar.

Launchpad Details: #LPC Jeremy Wootten - 2015-10-21 15:51:00 +0000

elementaryBot avatar Apr 26 '17 16:04 elementaryBot

I found the following block in Terminal,

        int minimum_width = t.calculate_width (80) / 2;
        int minimum_height = t.calculate_height (24) / 2;
        set_size_request (minimum_width, minimum_height);
        app.minimum_width = minimum_width;
        app.minimum_height = minimum_height;

Does anybody know what the purpose of this is? This is already setting a size request, therefore it is stopping me from solving the issue.

Launchpad Details: #LPC Fernando Alvarenga - 2017-02-15 23:51:34 +0000

elementaryBot avatar Apr 26 '17 16:04 elementaryBot