What steps will reproduce the problem?
1. Create a standard desktop
2. Add a frame and start the application
3. Drag the frame about for a while and you will see things being selected
What is the expected output? What do you see instead?
The selection when draging should be turned off making for a much cleaner
UI feeling
What version of the product are you using? On what operating system?
0.6
Please provide any additional information below.
To correct the issue add the follwoeing to GDefaultDesktopPane;
/*
* Imports needed for the dragging select issue
*/
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.DOM;
private void setupUI() {
RootPanel.get().add((Widget) desktop);
DOM.setAttribute( RootPanel.getBodyElement(), "onLoad", "windowLoaded
(event);");
<rest of the setpUI code goes here>
public static native void windowLoaded(Event evt) /*-{
document.body.ondrag = function () { return false; };
document.body.onselectstart = function () { return false; };
}-*/;
Original issue reported on code.google.com by rco...@gmail.com on 7 May 2007 at 9:08
Original issue reported on code.google.com by
rco...@gmail.com
on 7 May 2007 at 9:08