It should be easy to find out if an element is overflowed
Reported by
manuelch...@gmail.com,
Jul 30 2017
|
|||||||
Issue descriptionUserAgent: 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:
,
Aug 4 2017
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..!!
,
Feb 11 2018
,
Feb 12 2018
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?
,
Feb 12 2018
,
Feb 19 2018
I think this makes no sense since it seems scrollTop serves that purpose.
,
Feb 19 2018
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
,
Feb 22 2018
Closing due to lack of feedback. Please comment on bug to reopen. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by nyerramilli@chromium.org
, Jul 31 2017