Closed Bug 319062 Opened 19 years ago Closed 17 years ago

Tree in popup: click selects wrong row index

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 385536

People

(Reporter: gekacheka, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: testcase)

Attachments

(1 file)

5.77 KB, application/vnd.mozilla.xul+xml
Details
When a tree (table) appears in a menulist popup that drops below menulist field,
  Clicking on the first N rows does nothing.
  Clicking on row r > N selects row r - N.

N seems to depend on the distance of popup from top of page.
  If menulist is farther from the top of page, N is greater.

If menulist is low on screen and popup pops above menulist, 
  Clicking on last N rows does nothing.
  Clicking on row r selects row r + N.

testcase forthcoming
Attached file xul test example
testcase

- Click to open upper menulist, should drop down below.
- Clicking in first N rows does nothing (N=5 on w2k)
- Clicking row r > N selects row r - N above it

- N depends on position of popup on page.  Try again on lower menulist.
- Clicking row r > N selects row r - N. (N=10 on w2k)

- If low on screen and popup pops above menulist, then selects row r + N.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20051203 Firefox/1.6a1

Also appears in Firefox 1.5 (20051111)
Blocks: 296007
Keywords: testcase
Blocks: 297574
Depends on: 291083
OS=ALL?

lower menulist WFM on trunk. upper doesn't, at least of the window sizes I tested.

also, when selection doesn't work correctly it's hellishly slow and high cpu (that is, for both menulists on branch, and upper menulist on trunk)
Assignee: Jan.Varga → nobody
Selection on both works fine for me on the trunk after changing the onselect="onselect(event)" to onselect="myonselect(event)" - apparently XUL lacks HTML's guard against that infinite loop, so you have to wait out a "script stack space quota is exhausted" error.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
No longer blocks: 296007
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.trees → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: