Bug 329545

Summary: Applet icon does not scale horizontally when embedded in a panel
Product: [Plasma] plasma-nm Reporter: Frank Steinmetzger <dev-kde>
Component: appletAssignee: Jan Grulich <jgrulich>
Status: RESOLVED FIXED    
Severity: normal CC: lukas
Priority: NOR    
Version: 0.9.3.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Frank Steinmetzger 2014-01-03 00:03:50 UTC
Netbooks have a small screen, so I made the bottom panel very small. I noticed a squeezed appearance of the WiFi icon, so I investigated. When put onto the desktop, the icon always scales with the proper aspect ratio. But when put into the panel, the icon always has the same width, only the height changes with the panel.

Reproducible: Always

Steps to Reproduce:
1. Put plasma-nm into the panel.
2. Alter the panel's height.
Actual Results:  
The applet's icon's size only changes vertically, but not horizontally.

Expected Results:  
The icon should remain its proper aspect ratio.
Comment 1 Jan Grulich 2014-01-03 09:28:45 UTC
Git commit 0f8771e8b11a018805aa1497d7963dfce24d4510 by Jan Grulich.
Committed on 03/01/2014 at 09:28.
Pushed by grulich into branch 'master'.

Properly scale applet icon when the applet is in panel

M  +29   -27   applet/declarative/contents/ui/CompactRepresentation.qml

http://commits.kde.org/plasma-nm/0f8771e8b11a018805aa1497d7963dfce24d4510