Forum Discussion
Custom Visual Dialog Sizing in Desktop
- 4 years ago
No, the machine easily fulfills all those requirements and there is still the issue.
I will accept as a solution, but I think there is a problem with Macs running Windows which I don't really understand.
Hi cmholden ,
According to your description, it seems that the dialog box can display the set size in Power BI Service, but not in the Power BI Desktop. How is the dialog box displayed in Power BI Desktop and Power BI Service respectively? Could you please provide some screenshots of them if it is convenient? Before sharing, please mask off the sensitive information. Thank you.
In addition, you can refer the following documentation to create a dialog box for the visual...
Define the size and position of the dialog box
export interface RectSize {
width: number;
height: number;
}
export interface DialogOpenOptions {
title: string;
size?: RectSize;
position?: VisualDialogPosition;
actionButtons: DialogAction[];
}
Best Regards
Thanks for the reply!
The code sample I gave is pretty much the same as the sample you gave me from the docs.
As you can see, the dialog is crunched right at the top of the screen in Desktop and is correctly presented in online.
The code used is exactly the same.
DesktopOnline
- Anonymous4 years agoNot applicable
Hi cmholden ,
Could you please try to set the display resolution with "1920 x 1080" just like the one in below screen shot(Settings-->System-->Display) for your computer? And check whether the dialog box can display in Power BI Desktop normally.
Advanced scaling settings
Fix scaling for apps
Best Regards
- cmholden4 years agoRegular Visitor
That didn't work but I think this may well be the problem.
I'm using a Dual boot Mac with a 13" retina screen working in Windows 10 so I think what you have suggested may be causing the problem.
Let me try on a non dual boot machine and I'll see what happens there.
- Anonymous4 years agoNot applicable
Hi cmholden ,
I look forward to your reply after trying and hope your problem will be solved. If there is anything I can do to help, please feel free to contact me. Thank you.
Best Regards