Fit to screen

Hi,

I have images with fixed size of 400x400px. I want to display them in a Blazor Carousel.

The width of the carousel should be equal to 90vw with 5vw margin on each side of the screen, if in portrait mode.

The height should be 90vh if in panorama mode and horizontally centered.

I came close, but don't get it working perfectly. I have to set limitations for the image, but that seem to conflict with the carousel settings.

Do you have advice how to handle this correct?

Best regards

Michael


1 Reply

VS Venkateshwaran Saravanakumar Syncfusion Team September 1, 2023 04:34 PM UTC

Hi Michael,


Based on your query, we have prepared a sample and we are unable to reproduce the mentioned issue on our end. So can you please provide the following details, as they would greatly assist us in understanding and resolving the problem:

  • Could you please share all the code snippets related to the Carousel including any applied style customizations? or
  • Provide a simplified sample that replicates the issue or
  • Share a video demo that represents the issue.


Regards,
Venkatesh


Loader.
Up arrow icon