> Seems like I can kinda answer two of these questions myself now...
>
> Q: How can loader1.gwt-image be "loading.gif"?
>
> <ui:with type="blah.client.MyClientBundle" field="cb"/>
> <ui:image field="loading" resource="{cb.loading}"/>
> <ui:style>
> @sprite .loader1 {
> gwt-image: 'loading';
> padding-left: value('loading.getWidth','px');
> width: auto;
> height: auto;}
>
> </ui:style>
You can also do it with less code:
<ui:image field="loading" src="loading.gif"/>
> The problem with this is that if (loading.gif && MyClientBundle) are in a
> different package/directory to that of the ui.xml BOOM!
It certainly works for me with
<ui:image field="loading" src="path-to-image/loading.gif"/>
or
<ui:with field='res' type='com.blah.client.Resources'/>
> Q: How can loader3.margin-left be "loading.gif.width"?
>
> as above... padding-left: value('loading.getWidth','px');
See http://groups.google.com/group/google-web-toolkit/browse_thread/thread/df5db4040f1f5c76/b3ee0f84cd372eb1?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment