Unwanted white space is seen on 'Reset to Default' in wordhippo.com.
Reported by
lpa...@etouch.net,
Mar 16 2016
|
||
Issue descriptionChrome Version: 50.0.2661.37 4cf5e769930d697e8f617cff6a12f0d27dbfee89-refs/branch-heads/2661@{#250} (32/64 bit) OS: All (Win 7 Aero-Enabled) Steps: 1. Launch chrome and navigate to http://www.wordhippo.com/ 2. Zoom out the web page to 25% and click on 'Reset to Default' 3. Observe. Actual: Page appear weird on 'Reset to Default', i.e. unwanted white space is seen if we scroll the web page. Expected: Page should return to original state. This is a non-regression issue seen from M-30 build no. 30.0.1549.1
,
Mar 16 2016
The page is a giant table, with one row containing the central content, and within that row there is a table cell id="contentpagecell" that is being dynamically styled with an explicit height. The height increases as the zoom is changed but when zoom is reset the height doesn't reset.
The script file master-double-unit.js contains this method which does the work: function stretchContentPageCell() {
var windowHeight = window.innerHeight;
var mainTableHeight = document.getElementById("maintable").offsetHeight;
var contentCellHeight = document.getElementById("contentpagecell").offsetHeight;
if (windowHeight > mainTableHeight) {
var stretchHeight = contentCellHeight + (windowHeight - mainTableHeight)
document.getElementById("contentpagecell").style.height = stretchHeight + "px";
}
}
The if statement only allows the size to grow, not shrink. This is not a bug, it's a web site error.
|
||
►
Sign in to add a comment |
||
Comment 1 by ranjitkan@chromium.org
, Mar 16 2016