How to make uiHTML document fill up window
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm using uiHTML to create an UI for my MATLAB code, but the UI only fills up a portion of the window. In the attached image, the window is full screen and the black region is the body. This doesn't happen if I run it without MATLAB. Does anyone know how to expand it to fill up the window?
2 commentaires
Kojiro Saito
le 1 Juil 2022
I couldn't reproduce this issue in R2021b. How does your code look like?
Réponses (1)
Saffan
le 30 Août 2023
Hi Ephraim,
You can achieve this by setting the position of HTML UI component to fill the entire figure as shown in the following code snippet:
fig=uifigure;
h=uihtml(fig);
h.HTMLSource = 'test.html';
h.Position = [1 1 fig.Position(3) fig.Position(4)];
Refer to this for more information:
0 commentaires
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!