Chromium Code Reviews| Index: Source/web/resources/pickerCommon.js |
| diff --git a/Source/web/resources/pickerCommon.js b/Source/web/resources/pickerCommon.js |
| index eb7c61f803314d824fac395b809c502e5c847186..dc187a5acd2c48ae1e84ff5f3330b26b46ff7f59 100644 |
| --- a/Source/web/resources/pickerCommon.js |
| +++ b/Source/web/resources/pickerCommon.js |
| @@ -115,11 +115,14 @@ function adjustWindowRect(width, height, minWidth, minHeight) { |
| return windowRect; |
| var anchorRect = new Rectangle(global.params.anchorRectInScreen); |
| + console.log("anchorRect.x:" + anchorRect.x + " anchorRect.y:" + anchorRect.y + " anchorRect.width:" + anchorRect.width + " anchorRect.height:" + anchorRect.height); |
|
tkent
2014/09/01 05:37:03
Remove console.log()s.
keishi
2014/09/04 13:16:20
Done.
|
| var availRect = new Rectangle(window.screen.availLeft, window.screen.availTop, window.screen.availWidth, window.screen.availHeight); |
| _adjustWindowRectVertically(windowRect, availRect, anchorRect, minHeight); |
| _adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWidth); |
| - |
| +console.log("width:" + width + " height:" + height); |
| +console.log("minWidth:" + minWidth + " minHeight:" + minHeight); |
| +console.log("availRect.x:" + availRect.x + " availRect.y:" + availRect.y); |
| return windowRect; |
| } |
| @@ -157,6 +160,7 @@ function _adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWid |
| * @param {!Rectangle} rect |
| */ |
| function setWindowRect(rect) { |
| + console.log("rect.x:" + rect.x + " rect.y:" + rect.y); |
| if (window.frameElement) { |
| window.frameElement.style.width = rect.width + "px"; |
| window.frameElement.style.height = rect.height + "px"; |