Closed Bug 123024 Opened 24 years ago Closed 24 years ago

Special-case zero when about to call GetMinimumWidgetsize

Categories

(Core :: XUL, defect)

defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: mikepinkerton, Assigned: hyatt)

Details

There are cases where gecko wants to draw a widget with no dimensions (such as the tree headers in the autocomplete widget). however, it asks the theme impl what the minimum height is and it comes back with soemthing like 15, resulting in the headers being shown inappropriately. The code that calls GetMinimumWidgetSize needs to special-case zero and probably not ask the theme impl if that is what is desired.
Keywords: nsbeta1
Summary: Don't call GetMinimumWidgetSize when zero is what's desired → Special-case zero when about to call GetMinimumWidgetsize
Well, I think it would be more accurate to say that the autocomplete widget is buggy. It should be collapsing its headers rather than explicitly putting the height of the headers to 0.
A collapsed element will not show, regardless of what the theme says, so I think that's the way to fix this.
humm, ok, so should the bug be on the autocomplete widget and this should be closed out as invalid?
I think so, yeah.
per discussion
Er, I'm assuming 'per discussion' expands to 'filed bug 123028 on autocomplete, and marking this bug invalid'. :-]
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.