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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RyanBentham
Kudo Kingpin
Kudo Kingpin

Custom Visual that extends outside of the its container

As we know, the native Power BI drop-down slicer can extend outisde of it's container (see below)

RyanBentham_0-1664979981693.png

Are we able to achieve this same behaviour using a Custom Visual slicer?  With all my efforts so far I'm not able to do this, unless I extend the size of the visual container.  That of course then creats overlap issues with other visuals that I want to avoid

 

Thanks

 

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @RyanBentham,

Custom visuals are hosted as sandboxed iframes within a report, and rich HTML is not permitted to overflow the boundaries of the container, due to the restrictions MS have imposed upon this sandbox.

Core visuals are hosted as div elements within the report, and therefore don't have the same issues that we as third-party developers have in this regard.

With custom visuals, you can only exceed the boundaries of the container by using pure HTML form input elements, and not components or controls that are styled using more complex HTML. These elements have limited styling options, but will do what you want if you can accept this as an outcome.

The only supported way to exceed the boundaries of a visual is to use the dialog box API, which was introduced specifically for this limitation, and may be possible to adapt for your situation, but this may create some significant friction with UX, if you need it to serve as the list of options for a dropdown list. 

The alternative is as you've currently observed, and that's to ensure that your users size the visual to leave enough space for the dropdown list to grow into.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @RyanBentham,

Custom visuals are hosted as sandboxed iframes within a report, and rich HTML is not permitted to overflow the boundaries of the container, due to the restrictions MS have imposed upon this sandbox.

Core visuals are hosted as div elements within the report, and therefore don't have the same issues that we as third-party developers have in this regard.

With custom visuals, you can only exceed the boundaries of the container by using pure HTML form input elements, and not components or controls that are styled using more complex HTML. These elements have limited styling options, but will do what you want if you can accept this as an outcome.

The only supported way to exceed the boundaries of a visual is to use the dialog box API, which was introduced specifically for this limitation, and may be possible to adapt for your situation, but this may create some significant friction with UX, if you need it to serve as the list of options for a dropdown list. 

The alternative is as you've currently observed, and that's to ensure that your users size the visual to leave enough space for the dropdown list to grow into.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




@dm-p  Thanks Daniel - appreciate the information.  I hope it's something that may be possible in the future!  In the meantime I'll check out the dialog box API

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (27)