Dear GWT community,
I'm encountering a problem with IE7 when using a DeckPanel inside a
Grid. Consider the following code:
public void onModuleLoad()
{
HTML text = new HTML("<h1>left</h1>");
Grid inner = new Grid(1, 1);
Label right = new Label("right");
inner.setWidget(0, 0, right);
inner.getCellFormatter().setVerticalAlignment(0, 0,
HasVerticalAlignment.ALIGN_MIDDLE);
DeckPanel deck = new DeckPanel();
deck.add(inner);
deck.showWidget(0);
Grid outer = new Grid(1, 2);
outer.setWidget(0, 0, text);
outer.setWidget(0, 1, deck);
DOM.setStyleAttribute(DOM.getParent(text.getElement()),
"border", "1px solid");
DOM.setStyleAttribute(DOM.getParent(deck.getElement()),
"border", "1px solid");
RootPanel.get().add(outer);
}
The border attributes are just added for better visibility. Now in
Firefox both texts are displayed in the middle of the cells. That's
fine. However, in IE7 they're displayed at the top of the cells. The
code line setting the vertical alignment of "right" to MIDDLE has no
effect at all. Can somebody please tell me, what's going wrong here
and how I can get around this?
Best regards, Ecke
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---