How to make uiHTML document fill up window
8 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Kojiro Saito
2022 年 7 月 1 日
I couldn't reproduce this issue in R2021b. How does your code look like?
回答 (1 件)
Saffan
2023 年 8 月 30 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!