Skip to content

Commit

Permalink
fix #2143
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Oct 14, 2015
1 parent d858cbb commit d1205b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -12,6 +12,7 @@ Features
Bugfixes
--------

* Fix support for panorama images in gallery(Issue #2143)
* Support "maps.world.World" and similar charts in Pygal (Issue #2142)
* Capitalize "UTF-8" properly in locale guessing (Issue #2137)

Expand Down
4 changes: 2 additions & 2 deletions nikola/data/themes/bootstrap3/assets/js/flowr.plugin.js
Expand Up @@ -110,14 +110,14 @@
var minHeight = settings.height;
var minWidth = Math.floor(itemWidth * settings.height / itemHeight);

var newLineWidth = lineWidth + minWidth + requiredPadding(1);

if (minWidth > settings.maxWidth) {
// very short+wide images like panoramas
// show them even if ugly, as wide as possible
minWidth = settings.maxWidth - 1;
minWidth = settings.maxWidth - 1 - requiredPadding(1);
minHeight = settings.height * minHeight / minWidth;
}
var newLineWidth = lineWidth + minWidth;

// console.log( 'lineWidth = ' + lineWidth );
// console.log( 'newLineWidth = ' + newLineWidth );
Expand Down

0 comments on commit d1205b7

Please sign in to comment.