Revision history [back]

click to hide/show revision 1
initial version

answered 2018-08-28 09:26:23 +0800

psinalberth gravatar image psinalberth

After some reading I've reached to this piece of code:

zk.afterLoad("zul.wnd", function() {

    zul.wnd.Window.prototype.setVisible = function(visible) {

        if (visible) {
            jq(document.body).addClass('modal-open');
        } else {
            jq(document.body).removeClass('modal-open');
        }

        this.$supers('setVisible', arguments);
        this.zsync();
    };
});

My modal-open class is simply

.modal-open {
    overflow: hidden;
}

just like Bootstrap does.

I'd appreciate if someone else could try to run this code in some different situations. This code is satifying my need at the moment;

After some reading I've reached to this piece of code:

zk.afterLoad("zul.wnd", function() {

    zul.wnd.Window.prototype.setVisible = function(visible) {

        if (visible) {
            jq(document.body).addClass('modal-open');
        } else {
            jq(document.body).removeClass('modal-open');
        }

        this.$supers('setVisible', arguments);
        this.zsync();
    };
});

My modal-open class is simply

.modal-open {
    overflow: hidden;
}

just like Bootstrap does.

I'd appreciate if someone else could try to run this code in some different situations. This code is satifying satisfying my need at the moment;

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More