Thank you very much for ur answer. Yes, u right it's just css problem. I
setHTML("..."); & that is why it didn't go to the center.
On Tuesday, April 8, 2014 7:15:06 PM UTC+10, joerg.h...@googlemail.com
wrote:
>
> Hi Tom,
>
> this is not really a GWT specific question but rather an HTML+CSS issu
Hi Tom,
this is not really a GWT specific question but rather an HTML+CSS issue.
GWTs FlowPanel is just rendering a DIV tag. Whatever your inner HTML may be
and how your CSS looks like will decide if it works as expected or not.
Whenever I do such layouting, I copy the DOM-structure produced with
I have just 1 FlowPanel & 1 InlineHTML, the following code doesn't make
InlineHTML go into the middle of FlowPanel.
myFlowPanel.setWidth("100%");
myFlowPanel.add(myInlineHTML);
myFlowPanel.addStyleName(getView().getRes().css().textAlignCenterImportant());
//This is css
.textAlignCenterImporta