App Designer Image Placement Issue going from ver 2022a to 2022b

2 views (last 30 days)
I noticed strange behavior from my designer app going from version 2022a to 2022b.
I have a clickable image placed at the bottom of my uifigure that allows a user to go to my website.
But when I upgraded to version 2022b the clickable image now is shown at an unexpected location.
My quick fix is to put the clickable image at the top of my figure where is works fine.
I suggest MATLAB team investigate how to fix this change in behavior going from version 2022a to 2022b. Note also that the image will run at the bottom where I place it in design view for older versions too: version 2020a up to 2022a.
Here is code snippet:
% Create WebLinkImg
app.WebLinkImg = uiimage(app.RightPanel);
app.WebLinkImg.ImageClickedFcn = createCallbackFcn(app, @WebLinkImgClicked, true);
app.WebLinkImg.Tooltip = {'Launch BiophysicsLab.com using system web browser'};
app.WebLinkImg.Position = [28 10 153 30];
app.WebLinkImg.ImageSource = 'biophysicslab.png';
Figure below shows "BiophysicsLab.com" image set as clickable weblink correctly placed at bottom of figure in version 2022a
Below I show that clickable "BiophysicsLab.com" image is placed at the bottom using app design view (MATLAB 2022a and MATLAB2022b)
In figure below, the "BiophysicsLab.com" image is placed in some random spot on canvas when app is run in MATLAB version 2022b.
Finally, if I place the "BiophysicsLab.com" image at the top of the canvas, it displays correctly in the same place at the top when the app is run.
  1 Comment
Nivedita
Nivedita on 3 Jan 2024
Hello Ron,
I tried to reproduce the issue in MATLAB versions R2022a and R2022b at my end by placing an image inside a panel, however I did not face any change in the placement of the image while running it. Also it is quite difficult to comprehend why exactly the problem might be occuring at your end without looking at the code and the different parameters of the app components. If you can share your mlapp file, that would be helpful.

Sign in to comment.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!