UI scaling changes from latest 2025a prerelease to official 2025a release

97 visualizaciones (últimos 30 días)
Hi, I spent MANY hours to get my GUI running in 2025a - I included many changes to fix all the scaling issues of ui elements. I was always using the latest prerelease to implement and test these changes. Now after the "big mathworks crash", I finally could download the official 2025a release. And I notice that the scaling of ui element has completely changed and everything is messed up again. This is driving me crazy! Why are there prereleases if things are again changed in the last second?
I hope this is just a dpi scaling thing that can be fixed easily. Anyone maybe with some hints where to search?
Thanks!
  2 comentarios
William Thielicke
William Thielicke el 30 de Mayo de 2025
New scaling in 2025a
Old scaling in 2024b (and 2025a latest prerelease)
William
William el 4 de Jun. de 2025
I am in contact with the support. I think, the reason for the different scaling has something to do with different scaling of character units:
MainWindow = figure('numbertitle','off','MenuBar','none','DockControls','off','Name','Test...','Toolbar','none','tag','hgui','visible','on','WindowState','maximized');
set (MainWindow,'Units','Characters');
Figure_Size = get(MainWindow, 'Position')
get(0,"ScreenPixelsPerInch")
get(0,"ScreenSize")
close(MainWindow)
This gives different results for Matlab2025 and previous (pre)releases.
Accessibility Text Scaling is at 100%, Screen scaling is at 100%, set(groot,'DefaultUicontrolFontSize',8) has no effect.

Iniciar sesión para comentar.

Respuesta aceptada

Adam Danz
Adam Danz el 29 de Mayo de 2025
Editada: Adam Danz el 29 de Mayo de 2025
There's a known issue using Accessibility Text Scaling on Windows that affects UI Components in R2025a and some earlier releases. The workraound is described in this report: https://www.mathworks.com/support/bugreports/details/3632276
If that does not solve the issue please work with Tech Support.
  9 comentarios
Han Geerligs
Han Geerligs el 21 de Ag. de 2025
Editada: Han Geerligs el 21 de Ag. de 2025
Hello I have the same issue when using uifigure dialogs with 'characters' units.in R2025a.
I was wondering when the fix from development is expected to be released.?
kind regards,
--Han
Steven Lord
Steven Lord el 21 de Ag. de 2025
You should follow the bug report Adam linked to in his answer. When anything significant changes (a new workaround added, a release in which the bug is fixed becomes available, etc.) the bug report will be updated and users following it will be notified.
We don't always send out notifications when bug reports get modified if the change is something like a typo fix, but "this bug is fixed in release X" would cause a notification to be sent.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by