Ticket #6189 (closed defect: fixed)

Opened 8 months ago

Last modified 5 months ago

[patch] ComboBox/Editor: various height elements not working

Reported by: bill Owned by: haysmark
Priority: normal Milestone: 1.2
Component: Dijit - LnF Version: 1.1b1
Severity: normal Keywords:
Cc: nonken

Description (last modified by haysmark) (diff)

Not sure if this is a ComboBox problem or an Editor/FontPlugIn problem...

The larger items in the font-size drop down overlap each other

screenshot

Reproduced on FF2, IE7.

Attachments

fontSize.gif (11.0 kB) - added by bill 8 months ago.
screenshot
fixedpopup.jpg (9.7 kB) - added by haysmark 5 months ago.
Same popup without global dojo.css li rules.
6189.patch (347 bytes) - added by haysmark 5 months ago.
Fixes #6189. Set the line-height on each of the options in ComboBoxMenu? to normal.

Change History

Changed 8 months ago by bill

screenshot

Changed 8 months ago by bill

  • component changed from Dijit to Dijit - LnF

Changed 5 months ago by haysmark

  • description modified (diff)

It has to do with this code in dojo/resources/dojo.css:

ol li, ul li {
font-size:1em;
line-height:1.5em;
margin:0pt;
}

When I turn off font-size and line-height in Firebug I get a very different-looking menu.

Changed 5 months ago by haysmark

Same popup without global dojo.css li rules.

Changed 5 months ago by bill

  • cc nonken added
  • milestone changed from 1.3 to 1.2

Ah thanks for finding this. Hmm, I'm not sure how we should address this. Options are:

  • modify dojo.css, either
    • removing that line-height rule since it will also mess up developers that setup a different font-size on their lists w/out adjusting line-height too.
    • Alternately, could it be changed to use margin or padding rather than line-height?
  • override that setting for ComboBox's drop down
  • override that setting just for the Editor
  • something else

Changed 5 months ago by haysmark

Fixes #6189. Set the line-height on each of the options in ComboBoxMenu? to normal.

Changed 5 months ago by haysmark

  • status changed from new to assigned
  • summary changed from ComboBox/Editor: various height elements not working to [patch] ComboBox/Editor: various height elements not working

IMO setting global styles in dojo.css seems pretty wonky to me, but here is a patch to fix ComboBoxMenu?.

Changed 5 months ago by bill

  • status changed from assigned to closed
  • resolution set to fixed

(In [14295]) Fixes #6189: ComboBox/Editor?: various height elements not working

Note: See TracTickets for help on using tickets.