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:
52350b5
)
fixes transformed webview size
author
gellert
<gellihegyi@gmail.com>
Sat, 18 Jun 2016 22:41:42 +0000
(
00:41
+0200)
committer
gellert
<gellihegyi@gmail.com>
Sat, 18 Jun 2016 22:41:42 +0000
(
00:41
+0200)
lib/renderer/web-view/web-view.js
patch
|
blob
|
history
diff --git
a/lib/renderer/web-view/web-view.js
b/lib/renderer/web-view/web-view.js
index
82ed62d
..
98ca22d
100644
(file)
--- a/
lib/renderer/web-view/web-view.js
+++ b/
lib/renderer/web-view/web-view.js
@@
-166,6
+166,12
@@
var WebViewImpl = (function () {
resizeEvent = new Event('resize', {
bubbles: true
})
+
+ // Using client size values, because when a webview is transformed `newSize`
+ // is incorrect
+ newSize.width = this.webviewNode.clientWidth
+ newSize.height = this.webviewNode.clientHeight
+
resizeEvent.newWidth = newSize.width
resizeEvent.newHeight = newSize.height
this.dispatchEvent(resizeEvent)