Opened 14 years ago

Closed 14 years ago

#831 closed defect (fixed)

List box is too small to display full text and offers no horizontal scroll

Reported by: Johan Enell Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 2.5
Component: web Version: 2.4.6
Keywords: Cc:

Description

I'm adding members to a project. I the name is to long the permission information at the end of the line gets hidden. A horisontal slide should appear or the information should be displayed at the left side.

Change History (3)

comment:1 Changed 14 years ago by Nicklas Nordborg

Unfortunately list boxes doesn't have support for horizontal scrolling. The same problem exists with all other list boxes in BASE as well. I don't like the idea of displaying the permission info to left. It would not look good. I have no real good/simple idea for solving this. Here are a few options.

  • Make the list wider. This does not really solves the problem, only changes the limit
  • Chop all names/values to a max length and add ... to the end. This could be used with a yellow tooltip that displays the complete name/value. Requires a lot of coding to change all list boxes. I am not sure that all browsers supports tooltips.
  • Implement a substitute using <div> and javascript. Requires really a lot of coding but may look really nice. The list displaying plug-in/job parameters is an existing example. It doesn't have many features but is still rather complex.

comment:2 Changed 14 years ago by Nicklas Nordborg

Milestone: BASE 2.6BASE 2.5
Status: newassigned
Summary: Horisontal scrollList box is too small to display full text and offers no horizontal scroll

On the fortunate side I found that a solution building on the second alternative above is relatively 'simple' to implement. Most lists that may be affected by the problem are populated with javascript and use the Forms.addListOption() to add options to the list. It is possible to add code in this method that automatically checks the width of the list and then crops the text and adds a tooltip if the text is too long to fit.

I'll go ahead an fix the problem for list boxes that are populated in this way.

I'll also increase the width of the list in the sharing dialog. It is a bit tiny at the moment.

comment:3 Changed 14 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [3990]) Fixes #831: List box is too small to display full text and offers no horizontal scroll

Note: See TracTickets for help on using tickets.