Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


#38 null layout behavior

Sebastián Gurin

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...


  • swt null layout overlapped children