fix incorrect unit for slide-width/height css variable #1263
This commit is contained in:
1 parent
db2523db27
commit
88fbfc5751
5 files changed
+6
-6
No files matched your search
+2
-2
@@ -452,8 +452,8 @@ export default function( revealElement, options ) {
|
||||
dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );
|
||||
|
||||
// Expose our configured slide dimensions as custom props
|
||||
dom.viewport.style.setProperty( '--slide-width', config.width + 'px' );
|
||||
dom.viewport.style.setProperty( '--slide-height', config.height + 'px' );
|
||||
dom.viewport.style.setProperty( '--slide-width', typeof config.width == 'string' ? config.width : config.width + 'px' );
|
||||
dom.viewport.style.setProperty( '--slide-height', typeof config.height == 'string' ? config.height : config.height + 'px' );
|
||||
|
||||
if( config.shuffle ) {
|
||||
shuffle();
|
||||
|
||||
Reference in new issue
Block a user