mlapp scaling/zoom errors

33 Ansichten (letzte 30 Tage)
Mattias Arlbrant
Mattias Arlbrant am 20 Mär. 2025
Kommentiert: Jason am 6 Feb. 2026 um 19:57
Hi,
mlapps designed in appdesigner no longer appear the same way when running, as in app designer. Margins are different etc. I am using windows 11 but did not have these issues on an earlier windows version and same matlab version. Zooming with mouse wheel + ctrl scales most but not all ui elements, a uiaxes is unaffected by zooming. No zoom level can make the app look acceptable.
  1. How can I make the app appear the exactly same way in appdesigner and when running? Currently what you see is NOT what you get.
  2. How can I prevent zooming? I have set resize off, but that makes no difference.
This is a serious issues as I have no control over the appearance of the application.
Thanks,
M
  3 Kommentare
Adam Danz
Adam Danz am 5 Feb. 2026 um 21:10
@Jason, since the problem only happens in compiled apps, it may be a separate issue. Please contact tech support and include instructions how to reproduce the problem. Feel free to include the URL of this thread. Thanks for reporting!
Jason
Jason vor etwa 15 Stunden
Tech support got back to me, and it is a known bug in MATLAB R2025b. No workaround. ☹️

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Adam Danz
Adam Danz am 20 Mär. 2025
The zoom issue you are describing has been fixed for the R2025a release and is avalable in the R2025a pre-release. There is no workaround for the zoom issues in R2024b.
  2 Kommentare
Mattias Arlbrant
Mattias Arlbrant am 20 Mär. 2025
Hi Adam, Many thanks for responding! Good that #2 is known and a fix is coming! What about #1, any idea or advice on that one?
Adam Danz
Adam Danz am 20 Mär. 2025
You're welcome!
I was wondering how to addresss #1. It's hard to say without seeing what the differences are. It could be related to an accessibility feature in Windows 11 or it could be due to a change with java components. To get more targeted help with issue #1 contact tech support and include information about your MATLAB release and operating system. Feel free to reference this thread.

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 6 Feb. 2026 um 1:40
I don't know about zooming into plots versus the entire GUI, but I know the layout of your main app's gui is messed up if you are using a Windows display personalization of more than 100%. Component just don't show up in the right place as you rescale/resize your GUI. Sometimes they are clipped and sometimes all or part of them are off screen. The way around this is to apply a "grid layout" to your GUI and then position all your components on the grid. Then as you rescale the GUI the grid rescales and the components seem to rescale and reposition correctly. It's a pain in the neck but it's the only way they can suggest to get things to layout properly.

Kategorien

Mehr zu Develop uifigure-Based Apps finden Sie in Help Center und File Exchange

Produkte


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by