Hi all,
- First, why Style.Unit [1] is not documenting the values?
- How to make DockLayoutPanel fully occupies the screen (100%
width, 100% height), I tried to use the far below example.
- No matter what unit value is, I always get
<DIV style="POSITION: relative; WIDTH: 100px; HEIGHT: 100px">
which is '100px', not '100%'
- Even removing widht and height, and setting <g:center
size='100'> doesnot have an effect.
-------------------------------------------------
<ui:style>
.pretty { background-color: red }
</ui:style>
<g:DockLayoutPanel unit='PCT' width='100' height='100'
addStyleNames='{style.pretty}'>
<g:center>
<g:HTMLPanel>
<div>My Div</div>
</g:HTMLPanel>
</g:center>
</g:DockLayoutPanel>
-------------------------------------------------
public void onModuleLoad() {
RootPanel.get().add(new MainPanel());
}
-------------------------------------------------
public class MainPanel extends Composite {
interface Binder extends UiBinder<DockLayoutPanel, MainPanel> { }
private static final Binder binder = GWT.create(Binder.class);
public MainPanel() {
initWidget(binder.createAndBindUi(this));
}
}
-------------------------------------------------
[1]
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/dom/client/Style.Unit.html
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.