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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
matemusic
Advocate III
Advocate III

Custom visual height on iPad

Hello,

 

I am facing with a problem, for which I have been searching a solution for a couple of hours, but I didn't find any. 

 

I need to know height of custom visual, so I am using code below. 

public update(options: VisualUpdateOptions) {
//....some other code
let height: number = options.viewport.height;
//some other code....
It is working OK on Chrome browser, but when I test it on iPad app, I get strange results. Sometimes height value is little to big (often when I open app), sometimes value is OK (when I refresh app).
 
Can anyone know, what is causing this problem? Do I have to use a different code for getting a height or different placement? Or do I have to include somewhat code, which refresh height?
 
Thank you!
 
 
0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.