CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Width of drop downs = can it be fixed in length
Pages: [1]

Author Topic: Width of drop downs = can it be fixed in length  (Read 2427 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Width of drop downs = can it be fixed in length
June 15, 2009, 07:16:14 pm
Just realised one client is losing sight of the Search button on Find Contacts because the width of the drop down for Groups is being determined by the length of the name of the Group

Can these 'dropdowns' be altered so that the width of the box prior to selection is a fixed width, and that when clicked on the wider names show below it, extending beyond the right hand edge of the dropdown

I am sure a picture tells the story better - so currently get the upper version, am asking if the lower version is possible.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Width of drop downs = can it be fixed in length
June 15, 2009, 07:21:36 pm
Maybe this picture of the overall objective is more helpful - the upper one pushes 'search' button beyond the screen requiring scrolling. only reason this happens is the 'group' dropdown width is determined by the longest item in the list, rather than by the 'title' of the dropdown (ie '- any group - )
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Width of drop downs = can it be fixed in length
June 16, 2009, 12:43:21 pm
Peter - You can fix this by adding a css width directive to that field. The "big" class sets width to 15em.

In templates/CRM/Contact/Form/Search/BasicCriteria.tpl around line 137:

Code: [Select]
// replace this
        {$form.group.html}
// with this
        {$form.group.html|crmReplace:class:big}

I've made this change in core for 2.3 because we've heard other complaints about this particular form field.
Protect your investment in CiviCRM by  becoming a Member!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Width of drop downs = can it be fixed in length
June 16, 2009, 01:13:01 pm
THanks for solution and for fixing in 2.3  ;)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Width of drop downs = can it be fixed in length

This forum was archived on 2017-11-26.