Hi,
im using a bunch of popups with different locations.
Im trying to set the popup to a specific location (not the usual host component)
currently im using the CSS Injector plugin which injects the following:
.v-popupview-popup {
top: 123px !important;
left: 456px !important;
}
So each of my Popups injects its location when it has to be visible. There is only one Popup visible at a time so the approach works. But evidently the solution is quite ugly.
Doing some research ive stumbled upon the following ticket:
http://dev.vaadin.com/ticket/6965
Which left me with the following:
public class CustomPositionVPopupView extends VPopupView {
@Override
protected void showPopup(final CustomPopup popup) {
popup.setPopupPosition(123, 456);
popup.setVisible(true);
}
}
The approach works but im not sure how i would pass the values for the position to the popup.
My goal is to use the new widget for every PopupView.
A small example would benefit a lot.
As an addition:
Im not fond of using plain Windows or the Overlay addon because i very much would like to have the whole behaviour of the PopupView (animation and the setHideOnMouseOut method)
Thanks