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

Side by Side Diff: chrome/browser/resources/net_internals/view.js

Issue 1494783002: [Net Internals Page] Fix Element Shrinkage from Pinch-to-Zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * Base class to represent a "view". A view is an absolutely positioned box on 6 * Base class to represent a "view". A view is an absolutely positioned box on
7 * the page. 7 * the page.
8 */ 8 */
9 var View = (function() { 9 var View = (function() {
10 'use strict'; 10 'use strict';
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 superClass.prototype.setGeometry.call(this, left, top, width, height); 186 superClass.prototype.setGeometry.call(this, left, top, width, height);
187 this.childView_.setGeometry(left, top, width, height); 187 this.childView_.setGeometry(left, top, width, height);
188 }, 188 },
189 189
190 show: function() { 190 show: function() {
191 superClass.prototype.show.call(this, isVisible); 191 superClass.prototype.show.call(this, isVisible);
192 this.childView_.show(isVisible); 192 this.childView_.show(isVisible);
193 }, 193 },
194 194
195 resetGeometry: function() { 195 resetGeometry: function() {
196 this.setGeometry(0, 0, window.innerWidth, window.innerHeight); 196 this.setGeometry(0, 0, document.documentElement.clientWidth,
197 document.documentElement.clientHeight);
197 } 198 }
198 }; 199 };
199 200
200 return WindowView; 201 return WindowView;
201 })(); 202 })();
202 203
203 /** 204 /**
204 * View that positions two views vertically. The top view should be 205 * View that positions two views vertically. The top view should be
205 * fixed-height, and the bottom view will fill the remainder of the space. 206 * fixed-height, and the bottom view will fill the remainder of the space.
206 * 207 *
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 show: function(isVisible) { 316 show: function(isVisible) {
316 superClass.prototype.show.call(this, isVisible); 317 superClass.prototype.show.call(this, isVisible);
317 318
318 this.leftView_.show(isVisible); 319 this.leftView_.show(isVisible);
319 this.rightView_.show(isVisible); 320 this.rightView_.show(isVisible);
320 } 321 }
321 }; 322 };
322 323
323 return HorizontalSplitView; 324 return HorizontalSplitView;
324 })(); 325 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698