Support Article
Screen scrolls abruptly and automatically
SA-87565
Summary
User hovers on the status link of a bulk action (For example, to observe the tool tip for the Failure reason). However, the screen focus shifts and the perform harness is abruptly and horizontally scrolled to left.
Error Messages
Not Applicable
Steps to Reproduce
- Open the Bulk Action screen
- Click the Status column with the Hover option
Root Cause
An issue in the custom application code or rules.
Resolution
Perform the following local-change:
Add the below script to the UserWorkForm:
<script>
$(document).ready(function(){
$("body").change(function(e) {
debugger;
if(document.body.scrollWidth > document.body.clientWidth) {
debugger;
var scrollLeft = document.body.scrollLeft;
if(pega.util.Event.isIE){
scrollLeft = document.documentElement.scrollLeft
}
setTimeout(function() {
document.body.scrollLeft = scrollLeft;
if(pega.util.Event.isIE){
document.documentElement.scrollLeft = scrollLeft;
}
}, 100);
}
});
$("body").click(function(e) {
if($("#Pega_Cal_Cont").get(0)) {
if($.contains($("#Pega_Cal_Cont").get(0), e.target)) {
var scrollLeft = document.body.scrollLeft;
if(pega.util.Event.isIE){
scrollLeft = document.documentElement.scrollLeft
}
if(scrollLeft > document.body.clientWidth) {
debugger;
//scrollLeft = document.body.scrollLeft;
setTimeout(function() {
document.body.scrollLeft = scrollLeft;
if(pega.util.Event.isIE){
document.documentElement.scrollLeft = scrollLeft;
}
}, 100);
}
}
}
});
});
</script>
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.