Carousel Height adjustment

here I am using Carousel so that The carousel occupies the whole page but I don’t need that feature, I want the carousel to occupy half of the page like List So what should I do now?
static _template() {
return {
Content: {x: 140,
type: Carousel,
w: w => w,
y: 580,
h: 500,
direction: ‘column’,
scroll: 0,
scrollTransition: {duration: 0.4}
}
}
}

Try using autoResize:true

1 Like

Hi Debanik

You need to use clipping property with a the wrapping tag.

return {
             ContentWrapper: {
                        x: 140,
			w: w => w,
			y: 580,
			h: 500,
                        rect: true,
                        color: 0x00000000,
                        clipping: true,
			Content: {
				x: 0,
				type: Carousel,
				w: w => w,
				y: 0,
				h: 500,
				direction: ‘column’,
				scroll: 0,
				scrollTransition: { duration: 0.4 }
			}
		}
1 Like

thank you so much for your help…

thank you so much for your help. Clipping property is working.