Ero sivun ”Widget:Fullscreen” versioiden välillä
Järvi-meriwikistä
Rivi 29: | Rivi 29: | ||
console.log( document.fullscreenElement ); | console.log( document.fullscreenElement ); | ||
− | var | + | var cardEl = jQuery( this ).parents( '.JwCard' ); |
+ | var elem = cardEl[0]; | ||
if (!!document.fullscreenElement) { | if (!!document.fullscreenElement) { | ||
Rivi 44: | Rivi 45: | ||
jQuery( this ).html( '<i class="fas fa-expand"></i>' ); | jQuery( this ).html( '<i class="fas fa-expand"></i>' ); | ||
+ | elem.css( 'overflow', 'inherit' ); | ||
} else { | } else { | ||
Rivi 58: | Rivi 60: | ||
jQuery( this ).html( '<i class="fas fa-compress"></i>' ); | jQuery( this ).html( '<i class="fas fa-compress"></i>' ); | ||
+ | elem.css( 'overflow', 'auto' ); | ||
+ | |||
+ | |||
} | } |