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

Override PopUp Location/ stop it from updating based on a boolean condition. #37

Closed
ghost opened this issue Apr 14, 2014 · 2 comments
Closed

Comments

@ghost
Copy link

ghost commented Apr 14, 2014

Hi Tomas,
Would it be possible to add a location override for the pop up?

This is my use case:

I am using the PopOver from controlsFX, and I like the detachable feature. So, I would like to be able to do something like this:

-If the popover is detached.. then only update content inside.. but not the position. So in this case, override the position and keep it to last moved location. So something like..
PopOver popOver = new PopOver();
richTextArea.setPopupAtCaret(popOver);
if(popOver.isDetached()){
richTextArea.setPopUpAutoLayout(false);
}
else{
richTextArea.setPopUpAutoLayout(true);
}

-If it is not detached, then update the content as well as the position. This is the default current situation.

What do you think?
Best,
Maher

@TomasMikula
Copy link
Member

Hi Maher, you can stop positioning by

richTextArea.setPopupAtCaret(null);

@ghost
Copy link
Author

ghost commented Apr 14, 2014

Thanks!

On Mon, Apr 14, 2014 at 1:10 PM, TomasMikula notifications@github.comwrote:

Hi Maher, you can stop positioning by

richTextArea.setPopupAtCaret(null);


Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-40411935
.

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