| Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
|
| index 6479e8ed1424b60b9260d6d577d419a5449adec6..42c567f7618ca4d8d2633561031b48f178e01595 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
|
| @@ -522,6 +522,9 @@ WebInspector.DeviceModeModel.prototype = {
|
|
|
| this._appliedDeviceSize = screenSize;
|
| this._appliedDeviceScaleFactor = deviceScaleFactor || window.devicePixelRatio;
|
| + if (!outline)
|
| + outline = new Insets(0,0,0,0);
|
| +
|
| this._screenRect = new WebInspector.Rect(
|
| Math.max(0, (this._availableSize.width - screenSize.width * scale) / 2),
|
| outline.top * scale,
|
|
|