aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-google
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-19 01:03:59 -0700
committerArmen Kesablyan2012-06-19 01:03:59 -0700
commit2e13a73e4ee980a6f73f6ff48b2a195eb209a7db (patch)
treed352f5e769eae0e1b7b76ccbeafa9b174b1a9918 /node_modules/montage-google
parent244e608645778746d1a3b5aa0d4c0868f7c5c272 (diff)
parentc59eb371559a3061ce53223e249ca97daace5968 (diff)
downloadninja-2e13a73e4ee980a6f73f6ff48b2a195eb209a7db.tar.gz
Merge branch 'refs/heads/master' into binding
Conflicts: js/components/layout/tools-list.reel/tools-list.html js/components/layout/tools-properties.reel/tools-properties.html js/document/document-html.js js/document/templates/app/main.js js/panels/Panel.reel/Panel.js node_modules/montage/ui/native-control.js Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'node_modules/montage-google')
-rw-r--r--node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html2
-rw-r--r--node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html4
-rw-r--r--node_modules/montage-google/map.reel/map.html2
-rwxr-xr-xnode_modules/montage-google/picasa-carousel.reel/picasa-carousel.html4
-rw-r--r--node_modules/montage-google/youtube-channel.reel/youtube-channel.html4
-rw-r--r--node_modules/montage-google/youtube-channel.reel/youtube-channel.js22
-rw-r--r--node_modules/montage-google/youtube-player.reel/youtube-player.html2
7 files changed, 24 insertions, 16 deletions
diff --git a/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
index b8b9f39a..332b2932 100644
--- a/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
+++ b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
@@ -45,7 +45,7 @@
45 } 45 }
46 }, 46 },
47 "owner": { 47 "owner": {
48 "prototype": "montage-google/feed-reader/feed-entry.reel", 48 "prototype": "feed-reader/feed-entry.reel",
49 "properties": { 49 "properties": {
50 "element": {"#": "feed-entry"} 50 "element": {"#": "feed-entry"}
51 } 51 }
diff --git a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
index 99a353b9..4d6792a1 100644
--- a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
+++ b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
@@ -24,7 +24,7 @@
24 }, 24 },
25 25
26 "feedEntry": { 26 "feedEntry": {
27 "prototype": "montage-google/feed-reader/feed-entry.reel", 27 "prototype": "feed-reader/feed-entry.reel",
28 "properties": { 28 "properties": {
29 "element": {"#": "feed-entry"} 29 "element": {"#": "feed-entry"}
30 }, 30 },
@@ -38,7 +38,7 @@
38 }, 38 },
39 39
40 "owner": { 40 "owner": {
41 "prototype": "montage-google/feed-reader/feed-reader.reel", 41 "prototype": "feed-reader/feed-reader.reel",
42 "properties": { 42 "properties": {
43 "element": {"#": "feed-reader"} 43 "element": {"#": "feed-reader"}
44 } 44 }
diff --git a/node_modules/montage-google/map.reel/map.html b/node_modules/montage-google/map.reel/map.html
index fee3a38e..bd41f47e 100644
--- a/node_modules/montage-google/map.reel/map.html
+++ b/node_modules/montage-google/map.reel/map.html
@@ -15,7 +15,7 @@
15 { 15 {
16 16
17 "owner": { 17 "owner": {
18 "prototype": "montage-google/map.reel", 18 "prototype": "map.reel",
19 "properties": { 19 "properties": {
20 "element": {"#": "map-container"}, 20 "element": {"#": "map-container"},
21 "mapEl": {"#": "map"} 21 "mapEl": {"#": "map"}
diff --git a/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html b/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html
index f7c8a766..dc70a19c 100755
--- a/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html
+++ b/node_modules/montage-google/picasa-carousel.reel/picasa-carousel.html
@@ -12,7 +12,7 @@
12 <script type="text/montage-serialization"> 12 <script type="text/montage-serialization">
13 { 13 {
14 "owner": { 14 "owner": {
15 "prototype": "montage-google/picasa-carousel.reel", 15 "prototype": "picasa-carousel.reel",
16 "properties": { 16 "properties": {
17 "element": {"#": "montage-google-picasa-carousel"}, 17 "element": {"#": "montage-google-picasa-carousel"},
18 "flow": {"@": "flow"} 18 "flow": {"@": "flow"}
@@ -29,7 +29,7 @@
29 } 29 }
30 }, 30 },
31 "image": { 31 "image": {
32 "prototype": "montage-google/picasa-carousel.reel/image.reel", 32 "prototype": "picasa-carousel.reel/image.reel",
33 "properties": { 33 "properties": {
34 "element": {"#": "image"} 34 "element": {"#": "image"}
35 }, 35 },
diff --git a/node_modules/montage-google/youtube-channel.reel/youtube-channel.html b/node_modules/montage-google/youtube-channel.reel/youtube-channel.html
index 99a8a698..112fda72 100644
--- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.html
+++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.html
@@ -10,7 +10,7 @@
10 <script type="text/montage-serialization"> 10 <script type="text/montage-serialization">
11 { 11 {
12 "player": { 12 "player": {
13 "prototype": "montage-google/youtube-player.reel", 13 "prototype": "youtube-player.reel",
14 "properties": { 14 "properties": {
15 "element": {"#": "player"} 15 "element": {"#": "player"}
16 } 16 }
@@ -41,7 +41,7 @@
41 }, 41 },
42 42
43 "owner": { 43 "owner": {
44 "module": "montage-google/youtube-channel.reel", 44 "module": "youtube-channel.reel",
45 "name": "YoutubeChannel", 45 "name": "YoutubeChannel",
46 "properties": { 46 "properties": {
47 "element": {"#": "container"}, 47 "element": {"#": "container"},
diff --git a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
index 18ea7923..782318f0 100644
--- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
+++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
@@ -137,6 +137,9 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
137 if (this._shouldShowPopup) { 137 if (this._shouldShowPopup) {
138 this._positionPopup(); 138 this._positionPopup();
139 139
140 // Need the video to be on top
141 this._element.style.zIndex = 9000;
142
140 // Fix for Canary where the thumbnail in the video doesn't 143 // Fix for Canary where the thumbnail in the video doesn't
141 // change until the CSS transition has finished, so wait for 144 // change until the CSS transition has finished, so wait for
142 // it to change before starting the animation 145 // it to change before starting the animation
@@ -163,6 +166,10 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
163 document.removeEventListener('keyup', this); 166 document.removeEventListener('keyup', this);
164 } 167 }
165 168
169 // take the video from the top only once it's stopped animating
170 window.setTimeout(function() {
171 this._element.style.zIndex = null;
172 }, 500);
166 } 173 }
167 174
168 } 175 }
@@ -175,21 +182,22 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
175 182
176 _positionPopup: { 183 _positionPopup: {
177 value: function() { 184 value: function() {
185 var doc = this._element.ownerDocument;
178 186
179 var viewport = this._element.parentNode; 187 this.player.width = doc.width;
180 var viewportStyle = window.getComputedStyle(viewport); 188 this.player.height = doc.height;
181
182 this.player.width = viewportStyle.width;
183 this.player.height = viewportStyle.height;
184 189
185 // // Chrome 190 // // Chrome
186 // viewport.insertBefore(this._popupElement, viewport.firstChild); 191 // viewport.insertBefore(this._popupElement, viewport.firstChild);
187 // this._popupElement.style.top = viewport.offsetTop; 192 // this._popupElement.style.top = viewport.offsetTop;
188 // this._popupElement.style.left = viewport.offsetLeft; 193 // this._popupElement.style.left = viewport.offsetLeft;
189 194
195 var computedStyle = window.getComputedStyle(doc.body);
196
190 // Canary 197 // Canary
191 this._popupElement.style.top = - (this._element.offsetTop || 0) + 'px'; 198 // remove the body margin
192 this._popupElement.style.left = - (this._element.offsetLeft || 0) + 'px'; 199 this._popupElement.style.top = - (this._element.offsetTop || 0) - parseInt(computedStyle.marginTop, 10) + 'px';
200 this._popupElement.style.left = - (this._element.offsetLeft || 0) - parseInt(computedStyle.marginLeft, 10) + 'px';
193 } 201 }
194 }, 202 },
195 203
diff --git a/node_modules/montage-google/youtube-player.reel/youtube-player.html b/node_modules/montage-google/youtube-player.reel/youtube-player.html
index d51cecdb..41e5922b 100644
--- a/node_modules/montage-google/youtube-player.reel/youtube-player.html
+++ b/node_modules/montage-google/youtube-player.reel/youtube-player.html
@@ -11,7 +11,7 @@
11 <script type="text/montage-serialization"> 11 <script type="text/montage-serialization">
12 { 12 {
13 "owner": { 13 "owner": {
14 "prototype": "montage-google/youtube-player.reel", 14 "prototype": "youtube-player.reel",
15 "properties": { 15 "properties": {
16 "element": {"#": "iframe"} 16 "element": {"#": "iframe"}
17 } 17 }