-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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;
2 | No.2 Revision |
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;