필터 지우기
필터 지우기

Matlab App Designer: Scrolling within tab. Does not scroll down enough to see image.

조회 수: 37 (최근 30일)
Hello,
I'am using App Designer. I can scroll down within a tab but it stops halfway I would like to go. So the bottom image is not vissible.
It simply does not scroll down far enough.
The INTERACTIVITY - Scrollable checkbox is checked.
Does anyone have any sugestion?
Thanks
  댓글 수: 4
Geoff Hayes
Geoff Hayes 2022년 7월 8일
@Thomas Meesters - I wonder if the issue is because both of your image controls extend outside of the top and the bottom of the tab group. If only the top one extends outside, then the scroll bar appears and you can scroll as expected.
Megan Renny
Megan Renny 2022년 7월 15일
I'd like to mention I'm also having this issue, and looking at the suggestions "make sure your component extends off your scrollable-enabled parent container isn't working. I am attaching images of what my app design looks like and the app's page missing the scroll bar.
The Panel, which is a child of the tab with scroll enabled, itself has UIAxis objects inside of it that just aren't rendred, but you can see from the Component Browser are being accepted as present and inside the panel. These 10 axes are stacked vertically in the panel and the pannel goes off the tab.
As you can see from the second image, no scroll bar was generated in the app when run.

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

답변 (1개)

David Meissner
David Meissner 2022년 10월 17일
I agree this is a little tough to figure out from the doc, but you have to have your app look like what's shown in the image on the left so that, when run, it looks like what's shown in the image on the right. I found the trick is to first make everything that is going to go into a tab or a panel (the thing I'm going to make scrollable) fit nicely. Then carefully select everything in that (here I used a panel, so I'll call it...) panel and click and drag it upward so that 1) the only what you expect to show in the soon to be smaller scrollable panel is left in the panel. Note: The way to know you're doing it right and not just moving things out of the panel is when you're doing this you've got everything selected and while moving it the panel is still that blue color that tells you "hey, that object you're dragging is inside this panel. 2) Select the panel and grab the bottom outside border and drag it up to where you want the bottom of the final scrollable panel. 3) Ensure you have scrollable checked for that panel or have set its scrollable property to "on" if you're doing it programmatically. Please ignore the fact that I have tabs in this image. They have nothing to do with this other than you can do everything I talked about doing on a panel, on a tab instead. Also, if you want a horizontal scroll bar to show up, the content has to "not fit" horizontally when you start the app.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by