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

조회 수: 3 (최근 30일)
Ron Fredericks
Ron Fredericks 2022년 9월 27일
댓글: Nivedita 2024년 1월 3일
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
Nivedita
Nivedita 2024년 1월 3일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by