on xenial help sign in
Refactor TransformedSpreadDelegate scaling logic into something I can understand
338f354Daniel d'Andrada
qml/Stages/TransformedSpreadDelegate.qml+5−5
@@ -307,16 +307,16 @@ SpreadDelegate {
307 axis { x: 0; y: 1; z: 0 }
307 axis { x: 0; y: 1; z: 0 }
308 angle: priv.angle
308 angle: priv.angle
309 },
309 },
310+ Scale {
311+ origin { x: 0; y: spreadView.height }
312+ xScale: 1
313+ yScale: fullscreen ? 1 - priv.topMarginProgress * maximizedAppTopMargin / spreadView.height : 1
314+ },
310 Scale {
315 Scale {
311 origin { x: 0; y: spreadView.height / 2 }
316 origin { x: 0; y: spreadView.height / 2 }
312 xScale: priv.scale
317 xScale: priv.scale
313 yScale: xScale
318 yScale: xScale
314 },
319 },
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− },
320 Translate {
320 Translate {
321 x: priv.xTranslate
321 x: priv.xTranslate
322 }
322 }