Sunday, October 1, 2023
HomeCSShtml - Google Chrome - iframe scrolls back to leading after display...

html – Google Chrome – iframe scrolls back to leading after display screen: none


Fiddle: http://jsfiddle.net/RubNy/30/

$( paper). click( feature() {
$(' div'). toggle();// div scroll is kept
$(' #FileFrame'). toggle();// iframe scroll is not kept
} );

When an iframe obtains concealed making use of display screen: none and after that obtain revealed back, the scroll setting return back to top. Is this habits requirement? and also exists any type of method to maintain the iframe scrolling setting?

I located this habits on Windows 11 Google Chrome Variation 115.0.5790.110 (Authorities Build) and also Side Variation 115.0.1901.188 (Authorities construct) (64-bit). Nonetheless on Firefox 116.0 (64-bit) the iframe scroll is kept.

RELATED ARTICLES

Most Popular

Recent Comments