Changeset View
Changeset View
Standalone View
Standalone View
effects/morphingpopups/package/contents/code/morphingpopups.js
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 28 | geometryChange: function (window, oldGeometry) { | |||
---|---|---|---|---|---|
53 | //don't resize it "too much", set as four times | 53 | //don't resize it "too much", set as four times | ||
54 | if ((newGeometry.width / oldGeometry.width) > 4 || | 54 | if ((newGeometry.width / oldGeometry.width) > 4 || | ||
55 | (oldGeometry.width / newGeometry.width) > 4 || | 55 | (oldGeometry.width / newGeometry.width) > 4 || | ||
56 | (newGeometry.height / oldGeometry.height) > 4 || | 56 | (newGeometry.height / oldGeometry.height) > 4 || | ||
57 | (oldGeometry.height / newGeometry.height) > 4) { | 57 | (oldGeometry.height / newGeometry.height) > 4) { | ||
58 | return; | 58 | return; | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | //WindowForceBackgroundContrastRole | 61 | window.setData(Effect.WindowForceBackgroundContrastRole, true); | ||
62 | window.setData(7, true); | 62 | window.setData(Effect.WindowForceBlurRole, true); | ||
63 | //WindowForceBlurRole | | |||
64 | window.setData(5, true); | | |||
65 | 63 | | |||
66 | var couldRetarget = false; | 64 | var couldRetarget = false; | ||
67 | 65 | | |||
68 | if (window.moveAnimation) { | 66 | if (window.moveAnimation) { | ||
69 | if (window.moveAnimation[0]) { | 67 | if (window.moveAnimation[0]) { | ||
70 | couldRetarget = retarget(window.moveAnimation[0], { | 68 | couldRetarget = retarget(window.moveAnimation[0], { | ||
71 | value1: newGeometry.width, | 69 | value1: newGeometry.width, | ||
72 | value2: newGeometry.height | 70 | value2: newGeometry.height | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |