uitable extent is zero in uifigure (not so in figure)

7 vues (au cours des 30 derniers jours)
Jeremy
Jeremy le 15 Juil 2019
Commenté : Adam Danz le 6 Juil 2021
Any idea why the following code returns a table extent of zero? When you replace uifigure with figure, it returns non-zero values like you'd expect.
f = uifigure;
u = uitable(f, 'Data', ones(1,6));
ext = get(u, 'Extent')
  1 commentaire
Adam Danz
Adam Danz le 6 Fév 2020
Thomas Ewald's comment moved here as an answer.
Having the same issue here. What happend to this and is there a solution or workaround for this?

Connectez-vous pour commenter.

Réponses (2)

Vimal Rathod
Vimal Rathod le 19 Juil 2019
I have brought this issue to the notice of our developers. They will investigate the matter further with a view to resolving the issue in one of our future releases.
  2 commentaires
Varun Pai
Varun Pai le 5 Juil 2021
Is this issue fixed in any of the future releases ? R2020a and later ?
Adam Danz
Adam Danz le 6 Juil 2021
r2021a still returns all 0s for extent.

Connectez-vous pour commenter.


Adam Danz
Adam Danz le 4 Fév 2020
As of r2019b, update 4, the Extent property of UITables embedded into a UIFigure still returns [0 0 0 0] but to be fair, Extent is not a documented property of UITables. There are, however, several Position properties (Position, InnerPosition, OuterPosition, etc.).
Interestingly, if a UITable is embedded in a figure produced by the figure() function, the extent property is not all 0s but doesn't seem to relate to the UITable's position or size.

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by