Skip to content
Snippets Groups Projects
Commit 8c56f733 authored by dxtwjb's avatar dxtwjb
Browse files

Retain aspect ratio when scaling

borrowed from analogclock plasmoid
parent d4e30610
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,11 @@ Item {
PlasmaCore.SvgItem {
id: lunaSvgItem
anchors.fill: parent
anchors.centerIn: parent
width: Math.min(parent.width,parent.height)
height: Math.min(parent.width,parent.height)
svg: lunaSvg
// deal with northern <-> southern hemisphere
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment