Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

don't break modal position when a title is larger then image #9

Merged
merged 1 commit into from Mar 29, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions js/bootstrap-image-gallery.js
Expand Up @@ -159,6 +159,7 @@
width: img.width,
height: img.height
});
modal.find('.modal-title').css({ width: Math.max(img.width, 380) });
if ($(window).width() > 480) {
if (transition) {
clone = modal.clone().hide().appendTo(document.body);
Expand Down