projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b84fed5
)
Only set size and load URL on first attach
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Wed, 2 Nov 2016 22:43:19 +0000
(15:43 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 7 Nov 2016 21:42:36 +0000
(13:42 -0800)
lib/browser/guest-view-manager.js
patch
|
blob
|
history
diff --git
a/lib/browser/guest-view-manager.js
b/lib/browser/guest-view-manager.js
index
9ca8326
..
7217d04
100644
(file)
--- a/
lib/browser/guest-view-manager.js
+++ b/
lib/browser/guest-view-manager.js
@@
-78,7
+78,15
@@
const createGuest = function (embedder, params) {
guest.on('did-attach', function () {
params = this.attachParams
delete this.attachParams
+
+ const previouslyAttached = this.viewInstanceId != null
this.viewInstanceId = params.instanceId
+
+ // Only load URL and set size on first attach
+ if (previouslyAttached) {
+ return
+ }
+
this.setSize({
normal: {
width: params.elementWidth,