Hybrid View
-
11 Dec 2011 1:06 AM #1
[CLOSED] Undesired top/left margin around viewport with borderlayoutcontainer
[CLOSED] Undesired top/left margin around viewport with borderlayoutcontainer
I used the following code snippet and I cannot get rid of the unwanted margin on the left and top of the viewport
it shows up as (tried it in chrome and ie9) :Code:public class MySampleApplication implements EntryPoint, IsWidget { public void onModuleLoad() { Viewport viewport = new Viewport(); viewport.setWidget(this); RootPanel.get().add(viewport); } public Widget asWidget() { final BorderLayoutContainer con = new BorderLayoutContainer(); con.setBorders(true); con.setLayoutData(new MarginData(0, 0, 0, 0)); return con; } }
marginissue.jpg
Am I overlooking something here?
-
11 Dec 2011 4:08 AM #2
This looks like you are not loading the reset.css file.
-
11 Dec 2011 5:55 AM #3
Thanks Sven for responding (on a sunday
)
You were right, the path to my 'reset.css' had a typo, all is fine now
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote