diff --git a/src/components/galleria/Galleria.vue b/src/components/galleria/Galleria.vue index 4ccf3c3085..87f1b694c7 100755 --- a/src/components/galleria/Galleria.vue +++ b/src/components/galleria/Galleria.vue @@ -293,6 +293,7 @@ export default { .p-galleria-thumbnail-items-container { overflow: hidden; + width: 100%; } .p-galleria-thumbnail-items { diff --git a/src/components/galleria/GalleriaContent.vue b/src/components/galleria/GalleriaContent.vue index a044b385fd..6fd1b40c39 100755 --- a/src/components/galleria/GalleriaContent.vue +++ b/src/components/galleria/GalleriaContent.vue @@ -37,12 +37,21 @@ export default { return { id: this.$attrs.id || UniqueComponentId(), activeIndex: this.$attrs.activeIndex, + numVisible: this.$attrs.numVisible, slideShowActive: false } }, watch: { + '$attrs.value': function(newVal) { + if (newVal && newVal.length < this.numVisible) { + this.numVisible = newVal.length; + } + }, '$attrs.activeIndex': function(newVal) { this.activeIndex = newVal; + }, + '$attrs.numVisible': function(newVal) { + this.numVisible = newVal; } }, updated() {