#38 null layout behavior

open
nobody
5
2009-01-26
2009-01-26
Sebastián Gurin
No

A difference in overlapped widgets in null layouted composite

The attached snippet shows 3 child widgets which areas overlaps inside a null layouted composite. In java this shows two white rectangles and a one black on top of them. In javascript the white ones are on top the black one hiding it.

I thinks this is due because SWT null layout implementation use normal position:absolute behavior in which later dded children go on top of other siblings. Unfortunatly in SWT this seems to be inversed.

p.d: I don't think this fixing this bug is worthwhile. I really don't know even if SWT document the behavior of null layout with this respect. Nevertheless I think it's good to have this difference documented here...

Discussion

  • swt null layout overlapped children