New issue
Advanced search Search tips

Issue 750480 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Feature



Sign in to add a comment

It should be easy to find out if an element is overflowed

Reported by manuelch...@gmail.com, Jul 30 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
-

What is the expected behavior?

What went wrong?
Right now to find out (in theory) if something has an overflow you have to do something like "target.scrollHeight > target.clientHeight". First of all that doesn't work all the time, as you can see the scrollHeight is sometimes incorrect (something to fix as well) https://bugs.chromium.org/p/chromium/issues/detail?id=34224
But also, it's something the browser knows about, because it knows when to show a scrollbar or not, it should be a property of the element. Something like element.overflowed or similar. It would greatly improve dealing with development that involves this.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 59.0.3071.115  Channel: n/a
OS Version: 10.0
Flash Version:
 
Labels: Needs-Milestone
Labels: TE-NeedsTriageHelp
As this issue is related to code & seems to be out of scope from TE end, hence adding 'TE-NeedsTriageHelp' label for further investigation from dev.

Thanks..!!
Components: Blink>Layout

Comment 4 by e...@chromium.org, Feb 12 2018

Labels: Needs-Feedback
Hi, thanks for the suggestion.

This would require a spec change and it's not immediately obvious why exposing this to script would be important. Do you have a use case in mind?

Comment 5 by e...@chromium.org, Feb 12 2018

Labels: -Type-Bug -Pri-2 Pri-3 Type-Feature
I think this makes no sense since it seems scrollTop serves that purpose.
Project Member

Comment 7 by sheriffbot@chromium.org, Feb 19 2018

Cc: e...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by e...@chromium.org, Feb 22 2018

Status: WontFix (was: Unconfirmed)
Closing due to lack of feedback. Please comment on bug to reopen.

Sign in to add a comment