super( autohide );
// This catches auto-hiding initiated closes
addCloseHandler( new CloseHandler<PopupPanel>() {
public void onClose( CloseEvent<PopupPanel> event ) {
IFrameTabPanel iframeTab = SolutionBrowserPanel.getInstance().getContentTabPanel().getCurrentFrame();
if ( iframeTab == null || iframeTab.getFrame() == null ) {
return;
}
Frame currentFrame = iframeTab.getFrame();
FrameUtils.setEmbedVisibility( currentFrame, true );
}
} );
DOM.setElementAttribute( getElement(), "oncontextmenu", "return false;" ); //$NON-NLS-1$ //$NON-NLS-2$