Bug 349165 - Krita's Window not resizing properly, maximize button not working either
Summary: Krita's Window not resizing properly, maximize button not working either
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 345524 346076 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-14 20:45 UTC by maildpablo
Modified: 2017-11-27 10:41 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maildpablo 2015-06-14 20:45:00 UTC
I am not able to see the bottom part of the window.
The maximize button does not work at all.
When I resize the window, it only works horizontally (left or right) but not vertically, which does not solve the problem to see the bottom of krita window.

Reproducible: Always

Steps to Reproduce:
1. Open krita, the window does not fit the screen, the bottom part is not completely shown.
2. Try to maximize the window to fit the screen (it does not work).
3. Try to resize the window, it only works horizontally.


Expected Results:  
Fit the screen vertically at launch or at least when maximizing. Window should be able to be resized properly. 

Configuration.
Application: Krita 
Version: 2.9.5
OS: Linux (x86_64) release 4.0.5-1-MANJARO
Compiler: cc
Comment 1 Victor Wåhlström 2015-06-15 16:50:06 UTC
Is the toolbox on the left side only one column wide? If so my guess is that it's preventing the window from resizing vertically since all tools have to fit. Can you try resizing the toolbox itself so it fits more tools horizontally, then resize again?

If that works, this bug was likely fixed by commit dfb4ad6d837345b06d54c8fe217286574a3ed624

Could you try this with the latest git version? You may also need to clear your kritarc file, since it likely saved the bad UI layout.

The kritarc file should be located under ~/.kde/share/config/kritarc. If you use a fairly recent version of Krita you can also reset the config by holding ctrl+alt+shift during startup.
Comment 2 Sven Langkamp 2015-06-15 17:57:54 UTC
The toolbox can have any size. Most likely you have more dockers open than fit on your screen, which is a known problem with Qt. Try to close some and maximize again.
Comment 3 maildpablo 2015-06-15 18:24:42 UTC
Many thanks for the hint Victor! It was exactly that and it worked as you said. 
It would be nice if instead of "blocking" the maximize/resize capabilites this bar gets automatically resized (to 2 or more columns) if the user resizes or maximizes the window. Otherwise it is not user friendly, since another user not so curious might give up on the program, if he/she consideres it as buggy. 
Anyway, thanks you both for your prompt response!
Comment 4 Victor Wåhlström 2015-06-15 22:43:09 UTC
Agreed. I suspect making it behave like that may be a bit tricky, but let's formalize this bug as "make the toolbox reflow its layout if the user attempts to resize the height of the window".

To test if this bug has been fixed, resize the toolbox to be as thin as possible, i.e. one column, then try to resize the window's height. If no other widget is blocking the resize attempt, the toolbox should change its width to accommodate.
Comment 5 Halla Rempt 2015-06-20 07:29:27 UTC
*** Bug 346076 has been marked as a duplicate of this bug. ***
Comment 6 Halla Rempt 2015-06-20 07:30:24 UTC
Fixing this is pretty hard, due to the toolbox layout class that was written ages and ages ago. It doesn't take into account the available desktop size at all :-( Check KoToolBoxLayout::setGeometry.
Comment 7 Victor Wåhlström 2015-06-20 11:49:37 UTC
I don't have a lot of time to look at it this and next week, but I would very much like to give it a shot. I'll leave the bug unassigned in case someone wants to tackle it before me. I'll grab it when I have time to poke it.
Comment 8 Halla Rempt 2015-08-18 13:23:28 UTC
*** Bug 345524 has been marked as a duplicate of this bug. ***
Comment 9 Halla Rempt 2015-08-18 13:23:59 UTC
Victor,

Did you manage to look into this?
Comment 10 Victor Wåhlström 2015-08-19 05:39:40 UTC
Sorry, not yet. Spare time has been in short supply lately.

I'll take the bug so I don't forget, but I probably won't have time to work on it until next month. If anyone wants to tackle this before then, feel free to take it from me. :)
Comment 11 zottg 2016-01-28 21:59:01 UTC
Something similar is happening on the 3.0 alpha on Windows 10.

When I try to resize vertically, the window sizing is super sensitive. So just moving my mouse down a little (a few pixels) causes the window to shift off the screen. I'm not sure if it's shifting off screen or just resizing so fast that the window's top position falls of the bottom of the screen.
Comment 12 zottg 2016-01-29 06:54:00 UTC
Some clarification on the behavior on 3.0 alpha.

It seems that Krita thinks it's starting in full screen mode, but the UI is clearly not displayed as such. It appears like another window.

If you try to resize the window, you get odd behavior, as described in https://bugs.kde.org/show_bug.cgi?id=349165#c11

If you try to move the window, it doesn't work.

If you double click the title bar to max/min the window, the window won't change, but the min/max icon on the top right (in MS Windows) will change to reflect that it's now in window mode.

Now the window can be moved and resized without any odd behavior.

If you close Krita now and reopen, everything will be fine.

If you close Krita while it's maximized and reopen, this bug will happen again.
Comment 13 zottg 2016-01-29 06:54:42 UTC
*** Bug 358146 has been marked as a duplicate of this bug. ***
Comment 14 Halla Rempt 2017-11-27 10:41:37 UTC
The full-screen setting got fixed this week in

commit 2087392f65318aa4edacafba3d9d35244146787a
Author: Jouni Pentikäinen <joupent@gmail.com>
Date:   Tue Nov 21 15:48:51 2017 +0200

    Fix fullscreen checkbox state on startup
    
    BUG: 384108


The other issues are pretty much beyond us now, we have to accept the limitations of the development framework.