Project: Eclipse_Platform_UI
Bug 280632 [CSS][UI] How to handle margins
Reported: 2009-06-17 11:43:32 | Status: resolved fixed

In order to implement margins, we require that the control in question have a parent composite on which we can set marginLeft, marginRight, etc. This requires a rather odd contract between the widget construction and the styling, since the only reason for the composite and layout is to support the styling. It's also unrealistic to wrap every widget in a composite even if it will never have margins set. Another idea is for CSS to create the composite/layout on the fly when margins are being set. This would require the widget to be reparented.

Files changed in fix:
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/MWindowTest.java