PDA

View Full Version : unsink events for El



Valdai
10 Sep 2009, 5:16 AM
Hi,
i need to "select" components in my application by clicking on them. To show selection i create new El, set its bounds like the "selected" component, and add it to DOM (looks like proxyEl in Draggable).

DOM.appendChild(XDOM.getBody(), proxyEl.dom);
proxyEl.setVisible(true);
proxyEl.setZIndex(XDOM.getTopZIndex());
proxyEl.setBounds(...);
All is good and works fine in Explorer but in Chrome or Opera my El catches mouse events and the component under it can't be reached.
Are there any ideas how to unsink mouse events for El or maybe another decision?
i can use styles and borders for example but components may have there own borders and it can be not good idea.