Modify

Opened 10 years ago

Closed 10 years ago

Last modified 3 years ago

#11024 closed enhancement (duplicate)

Combo-boxes display issue in preset pop-up

Reported by: francois.lacombe Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: presets, combo-boxes, display Cc:

Description

Hello,

I'm currently writing new presets for my instance of JOSM and experiencing some issues to display combo-boxes.

As you will see in the screenshot, my drop down lists are compressed between two text-fields.
It's far different from what is happening with JOSM internal presets. I think the problem is a margin issue.

How can I force JOSM to add margins between input fields and get my combo-box display normally ?

Here the combo definition (similar to many in defaultpresets.xml):
<combo key="SYSTEM.owner_id" editable="false" values_searchable="true" text="Propri&#xE9;taire infrastructure"><list_entry value="10" display_value="ERDF distribution" short_description=""/><list_entry value="12" display_value="EDF Production" short_description=""/></combo>

Attachments (1)

unnamed.png (71.5 KB ) - added by francois.lacombe 10 years ago.
Combo-box display issue in pop-up window

Download all attachments as: .zip

Change History (4)

by francois.lacombe, 10 years ago

Attachment: unnamed.png added

Combo-box display issue in pop-up window

comment:1 by Klumbumbus, 10 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #6157.
This is caused by editable="false" There are some problems with this parameter. See #6157

comment:2 by francois.lacombe, 10 years ago

Thank you for this information :)

I'm sorry for the duplicate entry.

comment:3 by Don-vip, 3 years ago

In 18221/josm:

fix #21319 - Refactoring of class hierarchy around JosmComboBox / AutoCompComboBox (patch by marcello):

  • Code reuse: JosmComboBox now uses a JosmTextField as editor
  • Code reuse: AutoCompComboBox now uses AutoCompTextField as editor
  • JosmComboBox uses more of the original L&F
  • JosmComboBox lists now expand all the way to the bottom or the top of the screen
  • Variable height items in combobox lists now work, see #19321
  • Autocomplete uses different algorithm, fix #21290
  • editable="false" comboboxes in Presets now work, fix #6157 see #11024 see #18714
  • The user may toggle LTR-RTL script in JosmTextField (menu and ctrl+space)
  • LTR-RTL automatically toggles according to key in AddTag and EditTag dialogs, fix #16163

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.