Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion TestPages/DynamicResolution/scrolled_mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,15 @@ <h2 id="resize-alert"></h2>
oH.innerHTML = window.outerHeight + " px";
iW.innerHTML = window.innerWidth + " px";
iH.innerHTML = window.innerHeight + " px";
sW.innerHTML = document.documentElement.scrollWidth + " px";
var saveSw = document.documentElement.scrollWidth;
sW.innerHTML = saveSw + " px";
sH.innerHTML = document.documentElement.scrollHeight + " px";
cW.innerHTML = document.documentElement.clientWidth + " px";
cH.innerHTML = document.documentElement.clientHeight + " px";
// recheck the final 'scrollWidth' to ensure it was not changed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// recheck the final 'scrollWidth' to ensure it was not changed
// re-check the final 'scrollWidth' to ensure it was not changed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tal-applitool this is such an old PR, can't even say what was done there and whether it's relevant at all

if(saveSw !== document.documentElement.scrollWidth){
sW.innerHTML = document.documentElement.scrollWidth + " px";
}
}
updateData();
window.addEventListener("resize", () => {
Expand Down