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

Side by Side Diff: Source/devtools/front_end/AuditResultView.js

Issue 197823010: [DevTools] Add minimum size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@splitdip2
Patch Set: fixed comments Created 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.SidebarPaneStack} 33 * @extends {WebInspector.SidebarPaneStack}
34 * @param {!Array.<!WebInspector.AuditCategoryResult>} categoryResults 34 * @param {!Array.<!WebInspector.AuditCategoryResult>} categoryResults
35 */ 35 */
36 WebInspector.AuditResultView = function(categoryResults) 36 WebInspector.AuditResultView = function(categoryResults)
37 { 37 {
38 WebInspector.SidebarPaneStack.call(this); 38 WebInspector.SidebarPaneStack.call(this);
39 this.setMinimumSize(100, 25);
39 this.element.classList.add("audit-result-view", "fill"); 40 this.element.classList.add("audit-result-view", "fill");
40 41
41 function categorySorter(a, b) { 42 function categorySorter(a, b) {
42 return (a.title || "").localeCompare(b.title || ""); 43 return (a.title || "").localeCompare(b.title || "");
43 } 44 }
44 categoryResults.sort(categorySorter); 45 categoryResults.sort(categorySorter);
45 for (var i = 0; i < categoryResults.length; ++i) 46 for (var i = 0; i < categoryResults.length; ++i)
46 this.addPane(new WebInspector.AuditCategoryResultPane(categoryResults[i] )); 47 this.addPane(new WebInspector.AuditCategoryResultPane(categoryResults[i] ));
47 } 48 }
48 49
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (result.expanded) { 123 if (result.expanded) {
123 treeElement.listItemElement.classList.remove("parent"); 124 treeElement.listItemElement.classList.remove("parent");
124 treeElement.listItemElement.classList.add("parent-expanded"); 125 treeElement.listItemElement.classList.add("parent-expanded");
125 treeElement.expand(); 126 treeElement.expand();
126 } 127 }
127 return treeElement; 128 return treeElement;
128 }, 129 },
129 130
130 __proto__: WebInspector.SidebarPane.prototype 131 __proto__: WebInspector.SidebarPane.prototype
131 } 132 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/AuditLauncherView.js ('k') | Source/devtools/front_end/AuditsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698