p:galleria not visible #3176
-
Hello, PrimeFaces Showcase : ui-galleria-item-wrapper |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I have found the source of the problem, but I have no idea how to solve it. I use Bootstrap tab, when I add it to the active tab in the opening, the problem disappears. However, when I add it to the last tab and switch to this tab, the image is distorted |
Beta Was this translation helpful? Give feedback.
I solved the problem as follows. When the tab with Galleria is active, I re-render Galleria.
`
$(document).on('shown.bs.tab', 'a[data-toggle="tab"]', function (e) {
var tab = $(e.target);
var contentId = tab.attr("href");
`