Closed Bug 393226 Opened 17 years ago Closed 13 years ago

listitem: "onclick" event not fired if listcol has "overflow: hidden" style attribute

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

1.8 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: fabio, Unassigned)

Details

(Whiteboard: WORKSFORME?)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

If a listbox has listcols defined with the style "overflow: hidden", that listcol will not get the "onclick" event, even if the listitem has it defined.

Reproducible: Always

Steps to Reproduce:
1. Create a listbox with <listcols> tag and set <listcol style="overflow: hidden" />
2. Set an "onclick" event on <listitem>
3. Click on the listcol, nothing happens (the event is not fired)
Actual Results:  
If you click on the listitem it will NOT fire the onclick event and the row in the listbox is not selected.

Expected Results:  
I would expect the listitem to be selected and the onclick event being fired.
This is a small test case for the bug described.
Just open the XUL page and try to click on any column in the listbox.
Nothing will happen. 
If you click just at the extreme right of the row (the white part not covered by the cells) the event is fired as usual.
I can reproduce it in Firefox 2.0.0.6 on linux, but not in a trunk build.
Whiteboard: WORKSFORME?
Bug still seen in Firefox/2.0.0.17

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17

WORKSFORME in branch and trunk

Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080901033305 Minefield/3.1b1pre
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080902004913 SeaMonkey/2.0a1pre
Version: unspecified → 1.8 Branch
Comments indicate this was WFM as of 3.0.1, 2.x is long since EOL, closing WFM
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: