Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Dave0145
Frequent Visitor

Custom Visual HTMLElement scrolling

Hi,

 

I have been developing a custom visual using a HTMLElement object. I have set the <div> to overflow:auto. However, scrollbars do not appear when the content exceeds the iframe bounds. The standard list and matrix custom visuals do exactly what I want but there is no repo for those so I can't learn from that code.

 

Could anyone please advise how to make scrollbars automatically appear on a custom visual when content exceeds frame size? 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Dave0145,

 

Check the solution below.

https://community.powerbi.com/t5/Developer/make-custom-visuals-scrollable/m-p/98115#M3451

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Dave0145,

 

Check the solution below.

https://community.powerbi.com/t5/Developer/make-custom-visuals-scrollable/m-p/98115#M3451

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Brilliant! Thanks very much @v-chuncz-msft. That has worked beautifully. My problem was that I had put the overflow: auto in my .less file to style the div rather than setting the options on the constructor as you have suggested here.

v-viig
Community Champion
Community Champion

Hello @Dave0145,

 

Does div element have minimal sizes? Could you pleaseshare your code to investigate the issue deeper?

 

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.