Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PopUp Direction Alignment fixed value #41

Open
DanielVBG opened this issue Nov 29, 2017 · 0 comments
Open

PopUp Direction Alignment fixed value #41

DanielVBG opened this issue Nov 29, 2017 · 0 comments

Comments

@DanielVBG
Copy link

The default PopUp direction is set to Alignment.BOTTOM_RIGHT, so system.out says:

HorizontalAlignment=right
VerticalAlignment=bottom
isTop=false
isBottom=true
isRight=true
isLeft=false

, but when i resize the window and the popUp is displayed on Top of the Button the Alignment values do not change to:
HorizontalAlignment=right
VerticalAlignment=top
isTop=true
isBottom=false
isRight=true
isLeft=false

SampleCode for Standard Implementation of PopupButton:
`popupButton.addPopupVisibilityListener(event -> {
Alignment a = event.getPopupButton().getDirection();
System.out.println("HorizontalAlignment="+a.getHorizontalAlignment());
System.out.println("VerticalAlignment="+a.getVerticalAlignment());

		System.out.println("isTop=" + a.isTop());
		System.out.println("isBottom=" + a.isBottom());
		System.out.println("isRight=" + a.isRight());
		System.out.println("isLeft=" + a.isLeft());

});`

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant