uidropdown does not extend beyond its parent figure

9 ビュー (過去 30 日間)
Max Kehrer
Max Kehrer 2022 年 12 月 5 日
回答済み: Max Kehrer 2022 年 12 月 19 日
Hey,
I'm working on a small options window which contains a drop down created with the uidropdown function. When opening the drop down menu to select an option, the menu does not extend beyond its parent (which is fatal since the window is too small to navigate the drop down properly).
Since I'm rewriting an old GUI I know that a popupmenu created with the uicontrol function does extend beyond its parent figure but this is not available for apps created with uifigure.
Therefore, is there a workaround that does not involve using uicontrol or am I just missing an important uidropdown property?

採用された回答

Max Kehrer
Max Kehrer 2022 年 12 月 19 日
So I have contacted MathWorks and it seems that this is currently expected behavior. But however, there is an enhancement request for exactly this behavior.
For now I've decided on using a larger window with a list box.

その他の回答 (1 件)

cr
cr 2022 年 12 月 5 日
You are right, this doesn't seem to be a bug. Since the child objects cant extend beyond parent containers. However, in R2022b on OSX the issue isn't fatal. I'm still able to select an item far down as I can see a scroll bar.
  2 件のコメント
Max Kehrer
Max Kehrer 2022 年 12 月 6 日
Okay, well it is good to know that this is ineed not a bug and thank you for taking the time to recreate the problem yourself.
The problem for me is not that the drop down is not usable at all, but seeing only one option basically defeats the purpose of using a drop drown in my opinion.
cr
cr 2022 年 12 月 6 日
You may try replacing dropdown with a list box. That would create a small scrollbar and will allow you to do selections.

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

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by