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 GWT into a plain HTML file and link my custom CSS to it.
Then I can quickly play arround with CSS changes and hit F5 to refresh in browser. Compared to GWT development cycles this gives you factor 100 to 1.000.000 in speed for your testing turnarounds. If you get stuck with CSS issues stackoverflow is the right place for quickest support but then do not post GWT code but a jsfiddle URL or the like.
Cheers
Jörg
Am Montag, 7. April 2014 08:38:45 UTC+2 schrieb 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 GWT into a plain HTML file and link my custom CSS to it.
Then I can quickly play arround with CSS changes and hit F5 to refresh in browser. Compared to GWT development cycles this gives you factor 100 to 1.000.000 in speed for your testing turnarounds. If you get stuck with CSS issues stackoverflow is the right place for quickest support but then do not post GWT code but a jsfiddle URL or the like.
Cheers
Jörg
Am Montag, 7. April 2014 08:38:45 UTC+2 schrieb Tom:
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 .textAlignCenterImportant{ text-align:center !important; } How can we centralise the myInlineHTML inside myFlowPanel (GWT) by just using 1 FlowPanel & 1 InlineHTML without using other extra widgets?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment