This repository was archived by the owner on Jan 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -842,8 +842,7 @@ var ReactImageLightbox = React.createClass({
842842 return ;
843843 }
844844
845- var imageStyle = [ Styles . image ( this . props . animationDuration ) , baseStyle , transitionStyle ] ;
846- var fitSizes = { } ;
845+ var imageStyle = [ Styles . image , baseStyle , transitionStyle ] ;
847846 if ( this . state . zoomLevel > Constant . MIN_ZOOM_LEVEL ) {
848847 imageStyle . push ( { cursor : 'move' } ) ;
849848 }
@@ -942,7 +941,7 @@ var ReactImageLightbox = React.createClass({
942941 < Portal >
943942 < StyleRoot >
944943 < div // Floating modal with closing animations
945- className = { " outer" + ( this . state . isClosing ? ' closing' : '' ) }
944+ className = { ' outer' + ( this . state . isClosing ? ' closing' : '' ) }
946945 onWheel = { this . handleOuterMousewheel }
947946 onMouseMove = { this . handleOuterMouseMove }
948947 onMouseDown = { this . handleOuterMouseDown }
Original file line number Diff line number Diff line change @@ -39,15 +39,13 @@ var styles = {
3939 bottom : 0 ,
4040 } ,
4141
42- image : function ( duration ) {
43- return {
44- position : 'absolute' ,
45- top : 0 ,
46- bottom : 0 ,
47- margin : 'auto' ,
48- maxWidth : '100%' ,
49- maxHeight : '100%' ,
50- } ;
42+ image : {
43+ position : 'absolute' ,
44+ top : 0 ,
45+ bottom : 0 ,
46+ margin : 'auto' ,
47+ maxWidth : '100%' ,
48+ maxHeight : '100%' ,
5149 } ,
5250 imagePrev : {
5351 left : '-100%' ,
You can’t perform that action at this time.
0 commit comments