I took a quick look throught the css and the module to see if there was a way to set the resizable select to a default minimum height - I couldn't find any info.

Can the resizable form be set to a minimum height. Either a specific px, number of lines, or to the number of items in the parent?

Comments

ndf’s picture

Today there is not a configuration setting for this on the admin pages, but you can do it with jQuery.
In your theme js file add these 2 lines:

$('.hierarchical-select-wrapper .selects select').attr('size','2');
$('.hierarchical-select-wrapper .selects select').height('400');

The first line changes the selectbox to the resized version. The second line sets its height (in px).

If you prefer to use a separate js file copy-past the below code in a file and include it in your theme/module.

(function ($) {
  $(document).ready(function() {
    $('.hierarchical-select-wrapper .selects select').attr('size','2');
    $('.hierarchical-select-wrapper .selects select').height('400');
  });
})(jQuery);
ndf’s picture

To be honest, this is not working very well.
On page (re)load the above javascript does what it should, but after an ajax-reload the Hierarchical Select jumps back to its default settings.

rsutaria’s picture

kars-t’s picture

Status: Active » Fixed

Dear fellow Drupal enthusiasts,

this issue is now lasting for a very long time in the issue queue and was unfortunately never solved. As Drupal is a open source project everyone is helping on voluntary basis. So that this is was not solved is nothing personal and means no harm. But perhaps no one had time to deal with this issue, maybe it is too complex or did not describe the problem comprehensibly.

But this issue is not the only one. There are thousands of issues on Drupal.org that have never been worked on or could not be processed. This means that we are building a wave that is unmanageable and just a problem for the Drupal project as a whole. Please help us keep the issue queue smaller and more manageable.

Please read again, "Making an issue report" and see if you can improve the issue. Test the problem with the current Core and modules. Maybe the problem doesn't exist anymore, is a duplicate or has even been solved within this issue but never closed.

Help can also be found for it on IRC and in the user groups.

In order to remove this issue, I have set this issue to "fixed"

If there is new information, please re-open the issue.

wim leers’s picture

The #size property does this. This is documented.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.