Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js

Issue 2744773002: [DevTools] Fix ObjectPopover for objects not staying the same size (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/object_ui/objectPopover.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29344488095629b9c87f10e229ada61e791ee97e..67292e7bd833c7fccc2b3b868d292f55a17cc496 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js
@@ -305,18 +305,12 @@ UI.GlassPane = class {
this._arrowElement.classList.add('arrow-none');
}
- if (this._sizeBehavior === UI.GlassPane.SizeBehavior.SetMaxSize)
- this.contentElement.style.maxWidth = width + 'px';
- else
- this.contentElement.style.width = width + 'px';
-
- if (this._sizeBehavior === UI.GlassPane.SizeBehavior.SetMaxSize ||
- this._sizeBehavior === UI.GlassPane.SizeBehavior.SetExactWidthMaxHeight)
+ this.contentElement.style.width = width + 'px';
+ if (this._sizeBehavior === UI.GlassPane.SizeBehavior.SetExactWidthMaxHeight)
this.contentElement.style.maxHeight = height + 'px';
else
this.contentElement.style.height = height + 'px';
-
this.contentElement.positionAt(positionX, positionY, container);
this._widget.doResize();
}
@@ -371,7 +365,6 @@ UI.GlassPane.AnchorBehavior = {
*/
UI.GlassPane.SizeBehavior = {
SetExactSize: Symbol('SetExactSize'),
- SetMaxSize: Symbol('SetMaxSize'),
SetExactWidthMaxHeight: Symbol('SetExactWidthMaxHeight'),
MeasureContent: Symbol('MeasureContent')
};
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/object_ui/objectPopover.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698