Closed Bug 385535 Opened 17 years ago Closed 17 years ago

[mac] a tree inside a panel duplicates all the elements above it

Categories

(Core :: XUL, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: asaf, Assigned: enndeakin)

References

Details

(Keywords: regression)

Attachments

(5 files)

a tree inside a panel duplicates the element above it.

Screenshot+testcase coming.
Flags: blocking1.9?
Attached file testcase
Attached image screenshot
This is, of course, mac only.
Summary: a tree inside a panel duplicates all the elements above it → [mac] a tree inside a panel duplicates all the elements above it
Attached file simpler test
This is a simplified testcase. Removing the width/height attributes causes it to work.
Flags: blocking1.9? → blocking1.9+
Attached file another test
Another test, without using a tree, which shows that the bug appears whenever a child of a popup has a view/widget. Looks to be painting a copy of the popup's view inside the child's view area.

The frames are constructed properly and the view tree looks like this:

0x36f63d50 (widget=0x36f63db0[2] z=0 pos={0,0,5520,2040}) {0,0,5520,2040} z=0 vis=1 clientData=0x224b49c <
  0x36fb3d80 (widget=0x36fb3e90[4] z=0 pos={0,0,5460,3360}) {3240,960,5460,3360} z=0 vis=1 clientData=0x224d328 <
    0x36fbe630 (widget=0x36fbe7b0[3] z=2147483647 pos={120,2160,5220,1080}) {120,2160,5220,1080} z=0 vis=1 clientData=0x224daa8 <
    >
  >
  0x36f9b2c0 (widget=0x36f9b3c0[1] z=2147483647 pos={0,0,0,0}) {0,0,0,0} z=2147483647 vis=0 clientData=0x224bc1c <
  >
>
Blocks: 385536
In fact, this is a cocoa widgets regression.
Keywords: regression
The issue is that the wrong widget is being used when painting the child views of a popup. The adjustment done is DispatchEvent should only be done if there isn't a view, otherwise we end of using the popup's widget to draw every child view.
Assignee: jag → enndeakin
Status: NEW → ASSIGNED
Attachment #273968 - Flags: superreview?(roc)
Attachment #273968 - Flags: review?(joshmoz)
Blocks: 375730
Attachment #273968 - Flags: superreview?(roc) → superreview+
Attachment #273968 - Flags: review?(joshmoz) → review?(mark)
Attachment #273968 - Flags: review?(mark) → review+
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: