The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi all,
Is it possible to have scrollable options list when using an AUI dropdown (https://docs.atlassian.com/aui/latest/docs/dropdown2.html), as for a normal html <select>?
When the option list is too long, it may go outside screen bottom, and some options may be impossible to reach...
Thanks,
Fred
Community moderators have prevented the ability to post new answers.
Hi,
I found how to do this: adding overflow & max-height CSS properties, like this (from AUI Sandbox Dropdown example):
<!-- Simple Dropdown - trigger --> <p> <a href="#dwarfers" aria-owns="dwarfers" aria-haspopup="true" class="aui-button aui-dropdown2-trigger aui-style-default">Shipmates</a></p> <!-- Simple Dropdown - dropdown --> <div id="dwarfers" class="aui-dropdown2 aui-style-default" style="overflow:auto;max-height:150px;"> <ul class="aui-list-truncate"> <li><a href="http://example.com/">Lister</a></li> <li><a href="http://example.com/">Rimmer</a></li> <li><a href="http://example.com/">Cat</a></li> <li><a href="http://example.com/">Kryten</a></li> <li><a href="http://example.com/">Lister</a></li> <li><a href="http://example.com/">Rimmer</a></li> <li><a href="http://example.com/">Cat</a></li> <li><a href="http://example.com/">Kryten</a></li> <li><a href="http://example.com/">Lister</a></li> <li><a href="http://example.com/">Rimmer</a></li> <li><a href="http://example.com/">Cat</a></li> <li><a href="http://example.com/">Kryten</a></li> <li><a href="http://example.com/">Lister</a></li> <li><a href="http://example.com/">Rimmer</a></li> <li><a href="http://example.com/">Cat</a></li> <li><a href="http://example.com/">Kryten</a></li> <li><a href="http://example.com/">Lister</a></li> <li><a href="http://example.com/">Rimmer</a></li> <li><a href="http://example.com/">Cat</a></li> <li><a href="http://example.com/">Kryten</a></li> <li><a href="http://example.com/">Lister</a></li> <li><a href="http://example.com/">Rimmer</a></li> <li><a href="http://example.com/">Cat</a></li> <li><a href="http://example.com/">Kryten</a></li> </ul> </div><!-- .aui-dropdown2 -->
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Frederic,
Try tweaking this in the atlassian sandbox : https://docs.atlassian.com/aui/latest/sandbox/#. Check out the Dropdown library under this.
All these are the only available GUI options of the Atlassian products.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Greetings Jira Community, TLDR: We will be removing the option to switch back to the old Issue Create experience starting June 2022. You might have already gathered from our previous post (here...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.