fixes transformed webview size
This commit is contained in:
		
					parent
					
						
							
								52350b5e35
							
						
					
				
			
			
				commit
				
					
						3d010a8988
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue