Apps created with app designer are not displaying components positioned correctly
I replied with this issue to a Mathworks support comment on this thread:
https://www.mathworks.com/matlabcentral/answers/395508-why-does-the-app-not-resize-properly-for-different-screen-resolutions-in-app-designer
But did not get a reply. I will briefly describe the issue here, but that post has some information also. I have been using app designer since its inception and before that had been hand coding GUIs. I have never had a problem porting apps or GUIs from one machine to another until now.
I wrte apps for classes I teach as well as in consulting work and have for past several years been writing apps on these two machines currently with MATLAB 2024b, although I have been installing new releases as they came out for years, with no troubles
Dell Precision 5680 laptop running Windows 11. The app appears equally well when displayed on a connected DellUZ2715H 1920×1080 external monitor and when that monitor is disconnected and the display is the laptop display itself (1920×1200).
Dell Precision Tower 5810 runing Windows 10 and a Samsung S34CG50 wide screen monitor (3440×1440).
I have been running the apps on these machines as well as in MATLAB online and some Windows PCs the university owns for which we have a site MATLAB license, but I don’t right now have the specs of those machines, but they are economical machines.
This week I wanted to move my online presentation activities to another location in my home and use a machine that is there:
Dell Micro Tower Optiplex Small Form Factor Plus 7010, running Windows 11 with a Dell UZ2315H 1920×1080 monitor on which I have installed MATLAB 2024b, with all of the recommended display settings.
The genesis of the problem, with some screen shots of the simple projectile app I was trying to use, etc can be found in the linked thread. I also wound up with a workaround there in which I experimentally deliberately mis-positioned components so that they will after the app opens be repositioned so that it looks roughly like it should. Here I show what I did to display the problem. I opened up App Designer and created a dummy app by simply dragging two axes components from the component library and also dragging 8 buttons on the figure. I did nothing else. No code no boxes checked etc. Here is a screenshot of what that looked like.
Then I clicked the green "run" diamond button in the Designer tab and the app executed and created components to look like this:
This shows the opened app backlit by my screen background. The positions of the components have been shifted from original , with several being outside the figure. I tried one of the suggestions in the other thread, checking the "Scrollable" box under interactivity for the UIFigure and this is the result of that
In none of these cases does resizing the figures improve the component locations. In the other thread I reported that I also tried the suggested code in the startup function and that did not fix the problem either. In the apps I was trying to run, if the execute button showed and I could click it, the numerical, plotting, and table entry parts of the codes work and for the components visible disply on the app. I would very much appreciate some advice on this. As it is now this machine (and hence the new location) is unusable if I want to show apps during presentations, which I do routinely. I have never seen this problem before, peculiar to what is otherwise a relatively standard configuration computer.I replied with this issue to a Mathworks support comment on this thread:
https://www.mathworks.com/matlabcentral/answers/395508-why-does-the-app-not-resize-properly-for-different-screen-resolutions-in-app-designer
But did not get a reply. I will briefly describe the issue here, but that post has some information also. I have been using app designer since its inception and before that had been hand coding GUIs. I have never had a problem porting apps or GUIs from one machine to another until now.
I wrte apps for classes I teach as well as in consulting work and have for past several years been writing apps on these two machines currently with MATLAB 2024b, although I have been installing new releases as they came out for years, with no troubles
Dell Precision 5680 laptop running Windows 11. The app appears equally well when displayed on a connected DellUZ2715H 1920×1080 external monitor and when that monitor is disconnected and the display is the laptop display itself (1920×1200).
Dell Precision Tower 5810 runing Windows 10 and a Samsung S34CG50 wide screen monitor (3440×1440).
I have been running the apps on these machines as well as in MATLAB online and some Windows PCs the university owns for which we have a site MATLAB license, but I don’t right now have the specs of those machines, but they are economical machines.
This week I wanted to move my online presentation activities to another location in my home and use a machine that is there:
Dell Micro Tower Optiplex Small Form Factor Plus 7010, running Windows 11 with a Dell UZ2315H 1920×1080 monitor on which I have installed MATLAB 2024b, with all of the recommended display settings.
The genesis of the problem, with some screen shots of the simple projectile app I was trying to use, etc can be found in the linked thread. I also wound up with a workaround there in which I experimentally deliberately mis-positioned components so that they will after the app opens be repositioned so that it looks roughly like it should. Here I show what I did to display the problem. I opened up App Designer and created a dummy app by simply dragging two axes components from the component library and also dragging 8 buttons on the figure. I did nothing else. No code no boxes checked etc. Here is a screenshot of what that looked like.
Then I clicked the green "run" diamond button in the Designer tab and the app executed and created components to look like this:
This shows the opened app backlit by my screen background. The positions of the components have been shifted from original , with several being outside the figure. I tried one of the suggestions in the other thread, checking the "Scrollable" box under interactivity for the UIFigure and this is the result of that
In none of these cases does resizing the figures improve the component locations. In the other thread I reported that I also tried the suggested code in the startup function and that did not fix the problem either. In the apps I was trying to run, if the execute button showed and I could click it, the numerical, plotting, and table entry parts of the codes work and for the components visible disply on the app. I would very much appreciate some advice on this. As it is now this machine (and hence the new location) is unusable if I want to show apps during presentations, which I do routinely. I have never seen this problem before, peculiar to what is otherwise a relatively standard configuration computer. I replied with this issue to a Mathworks support comment on this thread:
https://www.mathworks.com/matlabcentral/answers/395508-why-does-the-app-not-resize-properly-for-different-screen-resolutions-in-app-designer
But did not get a reply. I will briefly describe the issue here, but that post has some information also. I have been using app designer since its inception and before that had been hand coding GUIs. I have never had a problem porting apps or GUIs from one machine to another until now.
I wrte apps for classes I teach as well as in consulting work and have for past several years been writing apps on these two machines currently with MATLAB 2024b, although I have been installing new releases as they came out for years, with no troubles
Dell Precision 5680 laptop running Windows 11. The app appears equally well when displayed on a connected DellUZ2715H 1920×1080 external monitor and when that monitor is disconnected and the display is the laptop display itself (1920×1200).
Dell Precision Tower 5810 runing Windows 10 and a Samsung S34CG50 wide screen monitor (3440×1440).
I have been running the apps on these machines as well as in MATLAB online and some Windows PCs the university owns for which we have a site MATLAB license, but I don’t right now have the specs of those machines, but they are economical machines.
This week I wanted to move my online presentation activities to another location in my home and use a machine that is there:
Dell Micro Tower Optiplex Small Form Factor Plus 7010, running Windows 11 with a Dell UZ2315H 1920×1080 monitor on which I have installed MATLAB 2024b, with all of the recommended display settings.
The genesis of the problem, with some screen shots of the simple projectile app I was trying to use, etc can be found in the linked thread. I also wound up with a workaround there in which I experimentally deliberately mis-positioned components so that they will after the app opens be repositioned so that it looks roughly like it should. Here I show what I did to display the problem. I opened up App Designer and created a dummy app by simply dragging two axes components from the component library and also dragging 8 buttons on the figure. I did nothing else. No code no boxes checked etc. Here is a screenshot of what that looked like.
Then I clicked the green "run" diamond button in the Designer tab and the app executed and created components to look like this:
This shows the opened app backlit by my screen background. The positions of the components have been shifted from original , with several being outside the figure. I tried one of the suggestions in the other thread, checking the "Scrollable" box under interactivity for the UIFigure and this is the result of that
In none of these cases does resizing the figures improve the component locations. In the other thread I reported that I also tried the suggested code in the startup function and that did not fix the problem either. In the apps I was trying to run, if the execute button showed and I could click it, the numerical, plotting, and table entry parts of the codes work and for the components visible disply on the app. I would very much appreciate some advice on this. As it is now this machine (and hence the new location) is unusable if I want to show apps during presentations, which I do routinely. I have never seen this problem before, peculiar to what is otherwise a relatively standard configuration computer. app designer component positioning fails MATLAB Answers — New Questions