Tuesday, February 17, 2015

Re: gwt-mosaic and GWT 2.7

Is your problem with org.gwt.mosaic.ui.client.impl.GlassPanel.java?

I had to make the following changes to the source for this class.

FROM:

protected static native int getWindowScrollHeight()

  /*-{

    return @com.google.gwt.user.client.impl.DocumentRootImpl::documentRoot.scrollHeight;

  }-*/;


  protected static native int getWindowScrollWidth()

  /*-{

    return @com.google.gwt.user.client.impl.DocumentRootImpl::documentRoot.scrollWidth;

  }-*/;



CHANGED TO:

 protected static int getWindowScrollHeight()

  {

  return Document.get().getScrollHeight();

  }


  protected static int getWindowScrollWidth()

  {

  return Document.get().getScrollWidth();

  }



I was able to simply copy the java source into my project, duplicating the same package path as the original.
The GWT compiler uses my version of the class, instead of the one in the jar.
Probably the correct way to fix it is to modify it and repackage the mosaic.jar with any changes you needed to make for 2.7.

If this is not your problem, let us know exactly what your problem is, maybe we can help.

Mike.










On Tuesday, February 17, 2015 at 12:09:44 AM UTC-10, Marko Khomytsya wrote:
Is there are any workaround way to compile project which is using gwt-mosaic in GWT 2.7 ?

--
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