Closed Bug 123 Opened 24 years ago Closed 23 years ago

Form menus not wide enough


(MozillaClassic Graveyard :: XFE, defect, P2)



(Not tracked)



(Reporter: dkindred=mozilla, Assigned: ramiro, NeedInfo)




(2 files)

Created by Darrell Kindred ( on Wednesday, April 8, 1998 5:18:59 PM PDT
Additional Details :
Using Motif 1.2.4 under Linux, menus in HTML forms are not
wide enough for both the text of the longest item and the
little arrow button on the right.  It looks like the width
of the arrow is not taken into account.  For an example with
screenshot, see
Updated by Ramiro Estrugo ( on Wednesday, April 29, 1998 2:46:32 AM PDT
Additional Details :
Assign to ramiro.

Yes the combo box sucks and has lots of bugs.  Thanks.
Hi Ramiro,

I believe I've tracked this bug down, and I might have a fix or at least an
analysis as soon as I can find some more time.

In fact, I was just wondering about the comment that you made on replacing
ComboBox at all. If you have something else to plug in already, we might just as
well "leave the ComboBox bugs be". Otherwise, we could fix ComboBox. I'll
volunteer to fix bugs on it, but obviously this wouldn't make sense if you throw
the whole thing out anyway. So, what's your opinion on that?
I know why ComboBox sometimes isn't wide enough, and why it's sometimes wider
than it should be, depending on the font being used.

The problem is that ComboBox tries to calculate the maximum length of the box by
going through all of the strings in the list and calculating the size based on
the current font.

HOWEVER: the font used to calculate the maximum length is wrong - it's always
the same one. The function where the font is calculated is called

static void
SetMaximumLabelSize(DtComboBoxPart *combo_p)

in DtWidgets/ComboBox.c

Later on, the font is assigned correctly. But is should have been assigned
already when the ComboBox size is calculated. I will plunge a bit deeper into
Closed: 23 years ago
Resolution: --- → WONTFIX
Old bug, old codebase. Marking won't fix. Re-open if I am incorrect.
Attached file ertertert
Attached image Screenshot
Duplicate of this bug: 383586
I am nnot fixing this bug
No longer blocks: 🍺
Duplicate of this bug: 1025612
Blocks: 1271962
Duplicate of this bug: 1526186
Flags: needinfo?(Alissaear)
You need to log in before you can comment on or make changes to this bug.