Bug 340003

Summary: Alternatives dialog glitches around
Product: [Plasma] plasmashell Reporter: Kai Uwe Broulik <kde>
Component: generalAssignee: Sebastian Kügler <sebas>
Status: RESOLVED FIXED    
Severity: normal CC: bhush94
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.1
Sentry Crash Report:
Attachments: Alternatives dialog broken

Description Kai Uwe Broulik 2014-10-15 20:04:41 UTC
The Alternatives dialog glitches around when it opens, probably because now there are so many alternatives for the clock (analog, digital, fuzzy, and the calendar) that a scrollbar appears and this confuses it. The dialog does not even end up the same size all the time, which can be seen when it is opened multiple times (which shouldn't be possible in the first place)

Reproducible: Always

Steps to Reproduce:
1. Make sure you have kdeplasma-addons installed
2. Right click digital clock in your panel (it's a top panel here, glitches even worse with bottom one)
3. 

Actual Results:  
Dialog jumps around and flickers, ends up in varying sizes

Expected Results:  
Dialog appears smoothly

Apparently the recent changes in Plasma dialog broke the size calculations for the alternatives dialog, here also the kickoff Alternatives (listing just two entries) has a scrollbar with the second item being cutoff half although there would be plenty of space to expand the dialog to show all items.
Comment 1 Kai Uwe Broulik 2014-10-15 20:05:11 UTC
Created attachment 89152 [details]
Alternatives dialog broken

I opened it a couple of times and every time it opened in a different size
Comment 2 Kai Uwe Broulik 2014-10-15 21:40:48 UTC
Git commit 8ac6ee1c7226de8f0e128e67f8686590a00f821d by Kai Uwe Broulik.
Committed on 15/10/2014 at 21:39.
Pushed by broulik into branch 'Plasma/5.1'.

Fix glitching Alternatives dialog

Setting anchors.fill in a dialog is not a good idea
REVIEW: 120602
FIXED-IN: 5.1.1

M  +5    -3    desktoppackage/contents/explorer/AppletAlternatives.qml

http://commits.kde.org/plasma-desktop/8ac6ee1c7226de8f0e128e67f8686590a00f821d