apostrophe
Advanced tools
Comparing version 0.4.107 to 0.4.108
{ | ||
"name": "apostrophe", | ||
"version": "0.4.107", | ||
"version": "0.4.108", | ||
"description": "Apostrophe is a user-friendly content management system. This core module of Apostrophe provides rich content editing and essential facilities to integrate Apostrophe into your Express project. Apostrophe also includes simple facilities for storing your rich content areas in MongoDB and fetching them back again. Additional functionality is available in modules like apostrophe-pages, apostrophe-snippets, apostrophe-blog, apostrophe-events, apostrophe-twitter and apostrophe-rss.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/apostrophe.js", |
@@ -90,14 +90,13 @@ // projector: a simple jQuery slideshow plugin | ||
function adjustSize() { | ||
$el.find('[data-image]').imagesReady(function(maxWidth, maxHeight, maxHeightToWidth) { | ||
var effectiveWidth = $el.width(); | ||
// If all of the images are narrower than the widget, | ||
// use the maximum width of an image | ||
if (maxWidth < effectiveWidth) { | ||
effectiveWidth = maxWidth; | ||
} | ||
var proportion = effectiveWidth * maxHeightToWidth; | ||
$el.find('[data-image]').imagesReady(function() { | ||
var tallest = 0; | ||
$el.find('[data-slideshow-item]').each(function() { | ||
var $item = $(this); | ||
if ($item.height() > tallest) { | ||
tallest = $item.height(); | ||
} | ||
}); | ||
if (!noHeight) { | ||
$el.find('[data-slideshow-items]').height(proportion); | ||
$el.height(proportion); | ||
$el.find('[data-slideshow-items]').height(tallest); | ||
} | ||
@@ -104,0 +103,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4766816
39596