Copy link to clipboard
Copied
I have created a small dialog window using a combo_box
I am facing two issues:
1. Only 5 entries are displayed in the dropdown, no more than that.
2. At first the scroller faintly appears, then disappears.
I have set scrollers to always appear in the Mac settings.
The scoller disappearing is not a big issue.
Can the limit of entries in the dropdown be extended?
I tried using height_in_lines but doens't work.
Copy link to clipboard
Copied
I don't see any documented or undocumented method for increasing the height of the dropdown either.
Re the disappearing scroll bar, if I use the mouse wheel or the trackpad to scroll it, the scroll bar reappears again. I think that's standard Mac behavior, not sure.
Copy link to clipboard
Copied
@johnrellis yes the scroll bar appears again with user input.
But one has to know it's possible.
When I was seeing only few entries and no scroll bar I thought my code was wrong and didn't return all the entries...I didn't think it was possible to scroll.
The dropdow is exactly what I need but the 5 entries limit is problematic,.doens't provide a good user experience.
Copy link to clipboard
Copied
"yes the scroll bar appears again with user input. But one has to know it's possible."
That's the default behavior on Mac. (I too changed the default to always show scroll bars.) It's clearly a LR design bug that combo_box() doesn't obey that setting, while scrolled_view() does.
Apple's UI designers love dynamically disappearing controls in a misguided attempt at decluttering the UI for babies, making life for knowledge workers harder. For example, following the Apple UI guidelines, the Preview app's Inspector window disappears the minute keyboard focus shifts to another app; so if you're trying to read the Inspector window while looking at information about the image from another app, or enter the information into another app, or type in an email, you have to make a screenshot of the Inspector window! As another example, the selection in Excel visually disappears when focus changes to another app, making it hard to highlight information in Excel while using the other app.
Copy link to clipboard
Copied