Scroll bar does not appear in tab group.

7 ビュー (過去 30 日間)
Matt Brown
Matt Brown 2022 年 12 月 5 日
編集済み: Matt Brown 2022 年 12 月 5 日
I have an app which contains a tab group which I need to be scrollable. I have enabled the 'scrollable' property for the tab, but cannot figure out how to get the scrollbar to actually appear. I have tried stretching, shrinking and even just running the code with stuff spilling out the edges to see if it appeared when ran... but with no progress.
I cannot share my real code, but I have attached a simple duplicate which has 'scrollable' enabled and no scroll bar appearing. I would appreciate any guidance that can be offered here.

採用された回答

cr
cr 2022 年 12 月 5 日
編集済み: cr 2022 年 12 月 5 日
According to the documentation:
Setting this property to 'on' enables scrolling within the container. However, there are additional requirements:
  • The child components in the container must occupy a larger area than the container can display at one time.
  • Components that do not fit in the container must be above or to the right of the container. You cannot scroll to components that are below or to the left of the container.
I just tested this behaviour and it works as described in R2022b. If it doesnt for you please mention the version and os you are using.
  1 件のコメント
Matt Brown
Matt Brown 2022 年 12 月 5 日
編集済み: Matt Brown 2022 年 12 月 5 日
Thanks. I had tried that and it did not work. However, after reading this I went back and added a panel in to which I put the edit fields and positioned that as you described... and that worked.
Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Find more on Interactive Control and Callbacks in Help Center and File Exchange

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by