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

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

Issue 197823010: [DevTools] Add minimum size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@splitdip2
Patch Set: width/height -> right/bottom 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 */ 45 */
46 WebInspector.ElementsPanel = function() 46 WebInspector.ElementsPanel = function()
47 { 47 {
48 WebInspector.Panel.call(this, "elements"); 48 WebInspector.Panel.call(this, "elements");
49 this.registerRequiredCSS("breadcrumbList.css"); 49 this.registerRequiredCSS("breadcrumbList.css");
50 this.registerRequiredCSS("elementsPanel.css"); 50 this.registerRequiredCSS("elementsPanel.css");
51 this.registerRequiredCSS("textPrompt.css"); 51 this.registerRequiredCSS("textPrompt.css");
52 this.setHideOnDetach(); 52 this.setHideOnDetach();
53 53
54 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit ViewState", 325, 325); 54 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit ViewState", 325, 325);
55 this._splitView.setSidebarElementConstraints(25, 25);
56 this._splitView.setMainElementConstraints(25, 19);
57 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh anged, this._updateTreeOutlineVisibleWidth.bind(this)); 55 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh anged, this._updateTreeOutlineVisibleWidth.bind(this));
58 this._splitView.show(this.element); 56 this._splitView.show(this.element);
59 57
60 this._searchableView = new WebInspector.SearchableView(this); 58 this._searchableView = new WebInspector.SearchableView(this);
59 this._searchableView.setMinimumSize(25, 19);
61 this._searchableView.show(this._splitView.mainElement()); 60 this._searchableView.show(this._splitView.mainElement());
62 var stackElement = this._searchableView.element; 61 var stackElement = this._searchableView.element;
63 62
64 this.contentElement = stackElement.createChild("div"); 63 this.contentElement = stackElement.createChild("div");
65 this.contentElement.id = "elements-content"; 64 this.contentElement.id = "elements-content";
66 this.contentElement.classList.add("outline-disclosure"); 65 this.contentElement.classList.add("outline-disclosure");
67 this.contentElement.classList.add("source-code"); 66 this.contentElement.classList.add("source-code");
68 if (!WebInspector.settings.domWordWrap.get()) 67 if (!WebInspector.settings.domWordWrap.get())
69 this.contentElement.classList.add("nowrap"); 68 this.contentElement.classList.add("nowrap");
70 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting Changed.bind(this)); 69 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting Changed.bind(this));
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 return; 1344 return;
1346 1345
1347 if (WebInspector.inspectElementModeController && WebInspector.inspectEle mentModeController.enabled()) { 1346 if (WebInspector.inspectElementModeController && WebInspector.inspectEle mentModeController.enabled()) {
1348 InspectorFrontendHost.bringToFront(); 1347 InspectorFrontendHost.bringToFront();
1349 WebInspector.inspectElementModeController.disable(); 1348 WebInspector.inspectElementModeController.disable();
1350 } 1349 }
1351 1350
1352 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p anel("elements")).revealAndSelectNode(node.id); 1351 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p anel("elements")).revealAndSelectNode(node.id);
1353 } 1352 }
1354 } 1353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698