use Size instead of Scale animation

BUG: 310945
This commit is contained in:
Thomas Lübking 2013-01-28 22:19:40 +01:00
parent 929fb3c508
commit a2ac8dab0c

View file

@ -35,14 +35,14 @@ var maximizeEffect = {
window: window, window: window,
duration: maximizeEffect.duration, duration: maximizeEffect.duration,
animations: [{ animations: [{
type: Effect.Scale, type: Effect.Size,
to: { to: {
value1: 1.0, value1: newGeometry.width,
value2: 1.0 value2: newGeometry.height
}, },
from: { from: {
value1: oldGeometry.width / newGeometry.width, value1: oldGeometry.width,
value2: oldGeometry.height / newGeometry.height value2: oldGeometry.height
} }
}, { }, {
type: Effect.Translation, type: Effect.Translation,