* @param alignment the {@link XElement#alignTo} anchor position to use in
* aligning to the element (defaults to defaultAlign)
* @param offsets the menu align offsets
*/
public void show(Element elem, AnchorAlignment alignment, int[] offsets) {
if (!fireCancellableEvent(new BeforeShowEvent())) {
return;
}
RootPanel.get().add(this);
getElement().makePositionable(true);