Skip to content
Permalink
Browse files

fix #2143

  • Loading branch information
ralsina committed Oct 14, 2015
1 parent d858cbb commit d1205b76cca2bd8eba78cd1d960f10f113f13724
Showing with 3 additions and 2 deletions.
  1. +1 −0 CHANGES.txt
  2. +2 −2 nikola/data/themes/bootstrap3/assets/js/flowr.plugin.js
@@ -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)

@@ -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 );

0 comments on commit d1205b7

Please sign in to comment.
You can’t perform that action at this time.