Changeset 27171 in webkit
- Timestamp:
- Oct 27, 2007, 11:45:10 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r27170 r27171 1 2007-10-27 Timothy Hatcher <timothy@apple.com> 2 3 Reviewed by Adam. 4 5 Bug 15727: Resizing the resource sidebar doesn't scale the font preview or network timeline 6 http://bugs.webkit.org/show_bug.cgi?id=15727 7 8 Add one window resize listener and call the new resize function on the currentPanel. 9 Also call the currentPanel's resize function when resizing the sidebar. 10 11 * page/inspector/DocumentPanel.js: Implement resize and call updateTreeSelection() when 12 the panel is shown and when resizing the DOM sidebar. 13 * page/inspector/FontPanel.js: Implement resize. 14 * page/inspector/NetworkPanel.js: Ditto. 15 * page/inspector/inspector.js: Add a window resize listener. 16 1 17 2007-10-27 Maciej Stachowiak <mjs@apple.com> 2 18 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r27161 r27171 13662 13662 isa = PBXProject; 13663 13663 buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */; 13664 compatibilityVersion = "Xcode 2.4"; 13664 13665 hasScannedForEncodings = 1; 13665 13666 knownRegions = ( -
trunk/WebCore/page/inspector/DocumentPanel.js
r27141 r27171 49 49 domView.treeOutline.panel = this; 50 50 51 var panel = this;52 window.addEventListener("resize", function() { panel.updateTreeSelection() }, false);53 54 51 domView.crumbsElement = document.createElement("div"); 55 52 domView.crumbsElement.className = "crumbs"; … … 93 90 94 91 WebInspector.DocumentPanel.prototype = { 92 show: function() 93 { 94 WebInspector.SourcePanel.prototype.show.call(this); 95 this.updateTreeSelection(); 96 }, 97 98 resize: function() 99 { 100 this.updateTreeSelection(); 101 }, 102 95 103 updateTreeSelection: function() 96 104 { … … 704 712 this.views.dom.sideContentElement.style.right = newWidth + "px"; 705 713 this.views.dom.sidebarResizeElement.style.right = (newWidth - 3) + "px"; 714 715 this.updateTreeSelection(); 716 706 717 event.preventDefault(); 707 718 } -
trunk/WebCore/page/inspector/FontPanel.js
r26933 r27171 43 43 44 44 this.updateFontPreviewSize(); 45 46 var panel = this;47 var resizeListener = function() {48 panel.updateFontPreviewSize();49 };50 51 window.addEventListener("resize", resizeListener, false);52 45 } 53 46 … … 56 49 { 57 50 WebInspector.ResourcePanel.prototype.show.call(this); 51 this.updateFontPreviewSize(); 52 }, 53 54 resize: function() 55 { 58 56 this.updateFontPreviewSize(); 59 57 }, -
trunk/WebCore/page/inspector/NetworkPanel.js
r26948 r27171 89 89 graphSideElement.appendChild(this.legendElement); 90 90 91 var networkPanel = this;92 window.addEventListener("resize", function() { networkPanel.updateTimelineDividersIfNeeded() }, false);93 94 91 this.drawSummaryGraph(); // draws an empty graph 95 92 … … 109 106 WebInspector.Panel.prototype.hide.call(this); 110 107 WebInspector.networkListItem.deselect(); 108 }, 109 110 resize: function() 111 { 112 this.updateTimelineDividersIfNeeded(); 111 113 }, 112 114 -
trunk/WebCore/page/inspector/inspector.js
r27141 r27171 237 237 238 238 window.addEventListener("unload", function(event) { WebInspector.windowUnload(event) }, true); 239 window.addEventListener("resize", function(event) { WebInspector.windowResize(event) }, true); 240 239 241 document.addEventListener("mousedown", function(event) { WebInspector.changeFocus(event) }, true); 240 242 document.addEventListener("focus", function(event) { WebInspector.changeFocus(event) }, true); … … 267 269 { 268 270 InspectorController.windowUnloading(); 271 } 272 273 WebInspector.windowResize = function(event) 274 { 275 if (this.currentPanel && this.currentPanel.resize) 276 this.currentPanel.resize(); 269 277 } 270 278 … … 462 470 var sidebar = document.getElementById("sidebar"); 463 471 if (sidebar.dragging == true) { 464 465 472 var x = event.clientX + window.scrollX; 466 473 … … 478 485 document.getElementById("searchResults").style.left = newWidth + "px"; 479 486 document.getElementById("searchResultsResizer").style.left = newWidth + "px"; 487 488 if (WebInspector.currentPanel && WebInspector.currentPanel.resize) 489 WebInspector.currentPanel.resize(); 490 480 491 event.preventDefault(); 481 492 }
Note:
See TracChangeset
for help on using the changeset viewer.