Re: Strange behaviour

2010-09-07 Thread Tanguy Le Barzic
/2010 04:53 PM, Tanguy Le Barzic wrote: Hi Thomas, Thanks for your answer. I tried your solution, with the exact same results :(. I think the problem comes from Window.getScrollTop() (which is used in position(final UIObject relativeObject, int offsetWidth, int offsetHeight

Re: Speed-Optimization of an application (RPCs, Architecture)

2010-09-05 Thread Tanguy Le Barzic
2010/9/3 Olivier TURPIN olivew...@gmail.com in a near future if you need to play with command pattern you could find some interesting hints with thoses articles : - Tutorial explaining the basics of gwt-dispatch : http://borglin.net/gwt-project/?page_id=283 - Nice articles about batching

Strange behaviour

2010-09-05 Thread Tanguy Le Barzic
Hi, I'm trying to set the position of a popup, which should appear below an element (class com.google.gwt.dom.client.Element) which I get from a NativeEvent, by doing : Element element = Element.as(event.getEventTarget()); popup.setPopupPosition(element.getAbsoluteLeft(),

Re: Strange behaviour

2010-09-05 Thread Tanguy Le Barzic
() for Firefox (at least for the version I'm using, 3.6.8) ? -- Tanguy 2010/9/6 Thomas Broyer t.bro...@gmail.com On Sep 5, 8:07 pm, Tanguy Le Barzic tanguy.lebar...@gmail.com wrote: Hi, I'm trying to set the position of a popup, which should appear below an element (class

Re: Speed-Optimization of an application (RPCs, Architecture)

2010-08-31 Thread Tanguy Le Barzic
Hi Fabian, Generally speaking, the fewer rpc calls the better, as browsers generally limit the number of simultaneous (http) calls to the same domain to two. If you make more, they will be queued. Therefore, it is often a good practice to batch these calls (see for example

Re: Popup Panel that follows the page

2010-07-26 Thread Tanguy Le Barzic
Hi Michael, Concerning the location of your popup (extending PopupPanel) on the screen, you can specify the position by using setPopupPosition. You can then place it whenever you want, relatively to the browser window (like the example given in the javadoc for PopupPanel), but also relatively to

Re: First GWT question: DockLayoutPanel and presenter/views

2010-07-26 Thread Tanguy Le Barzic
Hi Pete, The Mail application from the samples doesn't follow the MVP pattern and its separation between views and presenters. I suggest you read the articles from the blog about mvp ( http://code.google.com/webtoolkit/articles/mvp-architecture.html), which include an example similar to Mail (a