uigridlayout does not recognize 'fit' as parameter for rowheight

1 回表示 (過去 30 日間)
Florian B
Florian B 2021 年 10 月 8 日
コメント済み: Florian B 2021 年 10 月 8 日
I tried to compile the following line in Matlab R2019a (gl is a uigridlayout component):
gl.RowHeight = {30, 'fit', 'fit'};
The compiler responded with an error that says I can only use numbers or number-x combinations such as {30, '1x'}.
The grid layout is initalized properly, and works when I change the 'fit' to a number of 1x. I also tried this with a whole example app from the MathWorks documentation: Create and Run a Simple Programmatic App. Although I simply copy-pasted it into an empty .m-script, it would not compile.
Could it be that my release version does not support the 'fit'-keyword?

採用された回答

DGM
DGM 2021 年 10 月 8 日
  1 件のコメント
Florian B
Florian B 2021 年 10 月 8 日
damn, you are right, time to talk to the admin....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by