Index: ui/file_manager/video_player/js/video_player.js |
diff --git a/ui/file_manager/video_player/js/video_player.js b/ui/file_manager/video_player/js/video_player.js |
index 94c3367173d820d205126bd6ecae6034494216de..544abfb3fc414b1d94056215ebeb9a175b6182a2 100644 |
--- a/ui/file_manager/video_player/js/video_player.js |
+++ b/ui/file_manager/video_player/js/video_player.js |
@@ -495,9 +495,10 @@ VideoPlayer.prototype.onFirstVideoReady_ = function() { |
} |
var appWindow = chrome.app.window.current(); |
- appWindow.resizeTo(newWidth, newHeight); |
- appWindow.moveTo(oldLeft - (newWidth - oldWidth) / 2, |
- oldTop - (newHeight - oldHeight) / 2); |
+ appWindow.innerBounds.width = Math.round(newWidth); |
+ appWindow.innerBounds.height = Math.round(newHeight); |
+ appWindow.outerBounds.left = Math.round(oldLeft - (newWidth - oldWidth) / 2); |
+ appWindow.outerBounds.top = Math.round(oldTop - (newHeight - oldHeight) / 2); |
appWindow.show(); |
this.videoElement_.play(); |