| Index: third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js b/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
|
| index 831020febb1ea1fd6b2f977786e205be74dfe925..abba679e1b700a8945dfe4e3cb0400e9f321f1f3 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
|
| @@ -240,7 +240,7 @@ UI.GlassPane = class {
|
|
|
| positionX = Math.max(gutterSize, Math.min(anchorBox.x, containerWidth - width - gutterSize));
|
| if (!enoughHeight)
|
| - positionX += arrowSize;
|
| + positionX = Math.min(positionX + arrowSize, containerWidth - width - gutterSize);
|
| else if (showArrow && positionX - arrowSize >= gutterSize)
|
| positionX -= arrowSize;
|
| width = Math.min(width, containerWidth - positionX - gutterSize);
|
| @@ -298,7 +298,7 @@ UI.GlassPane = class {
|
|
|
| positionY = Math.max(gutterSize, Math.min(anchorBox.y, containerHeight - height - gutterSize));
|
| if (!enoughWidth)
|
| - positionY += arrowSize;
|
| + positionY = Math.min(positionY + arrowSize, containerHeight - height - gutterSize);
|
| else if (showArrow && positionY - arrowSize >= gutterSize)
|
| positionY -= arrowSize;
|
| height = Math.min(height, containerHeight - positionY - gutterSize);
|
|
|