cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-23 01:29:19 +03:00
parent 06239472cb
commit 3d6c548091

View File

@ -397,16 +397,15 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
// ribbon mode -- restore original image size...
} else {
this.ribbons.preventTransitions()
// reset image container size...
this.ribbons.viewer.find('.image:not(.clone)')
.each(function(_, img){
img.style.width = ''
img.style.height = ''
img.style.margin = ''
})
this.ribbons
.preventTransitions()
// reset image container size...
.viewer.find('.image:not(.clone)')
.each(function(_, img){
img.style.width = ''
img.style.height = ''
img.style.margin = ''
})
this
// align ribbons...
.alignRibbons('now')