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
BlockUI not centered #9796
Comments
Please provide a reproducer, otherwise its invalid |
It has already been fixed: #9496 Please see that ticket for the fix. |
Ok, sorry I havent found that bug report. Thank you very much |
I'm not sure if I'm doing something wrong but the proposed workaround doesn't fix my problem. The icon is still placed in the wrong position at the start of the action and "jumps" to the correct position at the end of the action (see screenshots below). I have included the javascript file with the proposed fix in the xhtml.
primefaces-custom.js
|
You might be missing other fixes. I would grab the whole blockui.js from master and try and use that. Or test with 13.0.0-SNAPSHOT either one. |
If you put together a an executable example using the PrimeFaces Test project I can take a look. There might be some other scenario different than the other one causing this. |
OK reproducer: pf-9796.zip With 12.0.0 its way off center. with 13.0 its slightly off center and then snaps to center as its finishing. I will look into it. |
@crocimi can you also add this MonkeyPatch: if (PrimeFaces.widget.BlockUI) {
PrimeFaces.widget.BlockUI.prototype.bindResizer = function() {
var $this = this;
this.resizeHandler = PrimeFaces.utils.registerResizeHandler(this, 'resize.' + this.id + '_resize', this.target, function() {
$this.alignOverlay();
});
// subscribe to all DOM update events so we can resize even if another DOM element changed
$(document).on('pfAjaxSend pfAjaxUpdated', function(e, xhr, settings) {
if (!$this.cfg.blocked) {
setTimeout(function() {
$this.alignOverlay()
}, 0);
}
});
}
} |
adding the second fix seems to solve the issue. thx |
a blockui associated to a commandbutton is not centered if the command button has an action listener. If we remove the action listener it works as expected. Issue noticed after upgrading from PF8 to PF12.0.0.
test.xhtml
MyTestBean.java
The text was updated successfully, but these errors were encountered: