Refactor TransformedSpreadDelegate scaling logic into something I can understand
commit338f354ec101e715f035593148cf219658699625
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateWed 22 Apr 2015, 10:18 (11 years ago)
parentf9350f7
qml/Stages/TransformedSpreadDelegate.qml+5−5
@@ -307,16 +307,16 @@ SpreadDelegate {
307307 axis { x: 0; y: 1; z: 0 }
308308 angle: priv.angle
309309 },
310+ Scale {
311+ origin { x: 0; y: spreadView.height }
312+ xScale: 1
313+ yScale: fullscreen ? 1 - priv.topMarginProgress * maximizedAppTopMargin / spreadView.height : 1
314+ },
310315 Scale {
311316 origin { x: 0; y: spreadView.height / 2 }
312317 xScale: priv.scale
313318 yScale: xScale
314319 },
315− Scale {
316− origin { x: 0; y: (spreadView.height * priv.scale) + maximizedAppTopMargin * 3 }
317− xScale: 1
318− yScale: fullscreen ? 1 - priv.topMarginProgress * maximizedAppTopMargin / spreadView.height : 1
319− },
320320 Translate {
321321 x: priv.xTranslate
322322 }