Re: How do I make sure Widgets receive mouse events if placed in front of a Canvas or Vaadin DrawingArea?
Use z-index CSS property to set the depth of your widgets. Higher z-index would get priority
Sent from my iPhone
Sent from my iPhone
This used to work on Firefox in GWT 2.3 on Window XP, but now on Chrome and IE with GWT 2.4 and Windows Vista I can't make my Widgets, which are in front of a Canvas (or Vaadin DrawingArea), receive any mouse events at all.A widget is placed in front of the drawing surface like so:absolutePanel.add(canvas); //drawing surface, whether it's a Canvas or Vaadin DrawingAreaabsolutePanel.setWidgetPosition(canvas, 0, 0);absolutePanel.add(myWidget);absolutePanel.setWidgetPosition(myWidget, 0, 0);If I do not add the "canvas", "myWidget" receives its mouse events fine.How do I make sure "myWidget" can receive all its mouse events properly in this scenario?--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oxkWAvKVuG0J.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home