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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1054215/image.png)
Thanks
4 个评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1059185/image.png)
I looked at the example from https://www.mathworks.com/matlabcentral/answers/466402-how-can-i-enable-scrolling-on-a-tab-in-app-designer. Maybe you need to do the same.
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
2022-10-17
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1160098/image.jpeg)
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 Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!