Bug 411577 - Avoid changing width of the delay input box
Summary: Avoid changing width of the delay input box
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 19.08.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-04 03:54 UTC by Frederick Zhang
Modified: 2019-09-04 12:52 UTC (History)
1 user (show)

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


Attachments
Before click (9.41 KB, image/png)
2019-09-04 03:55 UTC, Frederick Zhang
Details
After click (6.50 KB, image/png)
2019-09-04 03:55 UTC, Frederick Zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederick Zhang 2019-09-04 03:54:42 UTC
SUMMARY
The width of the delay input box grows if I click on + when it's 'No Delay'. This is mildly annoying as for example, if I double click on + to have a 2 seconds' delay, it actually ends up with No Delay since the buttons moved and the second click hit - button instead.

STEPS TO REPRODUCE
1. Open Spectacle, make sure it's 'No Delay' after launch
2. Click on + button

OBSERVED RESULT
Width of the delay input box grows.

EXPECTED RESULT
Wider delay input box at the beginning so that it doesn't change to fit more text in when I click +.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.16.5-1
KDE Frameworks Version: 5.61.0-1
Qt Version: 5.13.0-7
Comment 1 Frederick Zhang 2019-09-04 03:55:37 UTC
Created attachment 122478 [details]
Before click
Comment 2 Frederick Zhang 2019-09-04 03:55:52 UTC
Created attachment 122479 [details]
After click
Comment 3 David Redondo 2019-09-04 08:51:25 UTC
What theme/style are you using? It seems it changes the size of the combobox maybe so that it fits the text? The size is set in the beginning to be bigger than needed and actually never changes.
Comment 4 Frederick Zhang 2019-09-04 11:54:11 UTC
I once used Arc (https://github.com/PapirusDevelopmentTeam/arc-kde) and now using Materia (https://github.com/PapirusDevelopmentTeam/materia-kde), and I have this issue with both of them.
Comment 5 David Redondo 2019-09-04 12:52:14 UTC
The combobox is definitely drawn to small in your before screenshots. The minimum width is set to 160 pixels in the code. In your screenshot I measured the width as 
116 pixels. I see from your links these are Kvantum themes. Since the minimum width is respected for example by Breeze and Oxygen I suspect this is an issue with Kvantum and/or these themes and will close this as a downstream issue.