Charm 4.0.0 PopupView shows up only once

限于喜欢 提交于 2019-12-02 10:29:26

Thanks for reporting. I've filed an issue so it get fixed as soon as possible.

In the meantime, a workaround for the PopupView can be this:

PopupView popupView = new PopupView(button) {

    private final GlassPane glassPane = MobileApplication.getInstance().getGlassPane();

        {
            this.setOnMouseReleased(e -> this.hide());
        }

    @Override public void show() {
        // before showing add the glassPane (issue #2):
        this.mobileLayoutPaneProperty().set(glassPane);
        super.show(); 
    }

    @Override public void hide() {
        // when hiding don't show again (issue #1):
        setShowing(false);
        super.hide(); 
    }
};
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!