Skip to content

Commit 0cc4247

Browse files
author
Julian Xhokaxhiu
committed
Always wrap the internal content with a special div.
This way we can preserve vertical alignment.
1 parent 4169468 commit 0cc4247

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/js/jquery.swipebox.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,9 +802,14 @@
802802
// Inline content
803803
if ( src.trim().indexOf('#') === 0 ) {
804804
callback.call(
805-
$(src)
806-
.clone()
807-
.toggleClass( plugin.settings.toggleClassOnLoad )
805+
$('<div>', {
806+
'class' : 'swipebox-inline-container'
807+
})
808+
.append(
809+
$(src)
810+
.clone()
811+
.toggleClass( plugin.settings.toggleClassOnLoad )
812+
)
808813
);
809814
}
810815
// Everything else

0 commit comments

Comments
 (0)