[Resolved] WebSphere Portal Bug: Clicking Any Button in Inline Editing Will Causes Chrome Scrollbar To Disappear

We have raised a PMR with IBM and they have provided us with a temporary workaround for CF9 and below (as of 18 Mar 2016). The full workaround should be in WebSphere Portal 8.5 CF10.

9 May 2016: We have confirmed that the bug has been resolved in WebSphere Portal 8.5 CF 10.

How to replicate the issue:

  • Ensure that your WebSphere Portal version is 8.5 CF9 and below
  • Ensure that your Chrome browser is up to date
  • Open any content that is long enough for the Chrome vertical scrollbar to appear in Inline Editing.
  • Click on any button and the Chrome scrollbar will disappear.

 

Below is IBM temporary workaround (as of 18 Mar 2016).

For WebSphere Portal 8.5 CF9 and below, modify the following files:

  • AuthoringUIView.jsp (<wp_profile>/installedApps/cellname/PA_WCM_Authoring_UI .ear/ilwwcm-authoring.war/jsp/html/AuthoringUIView.jsp)
  • dialogCloserLaunchPage.jsp ( <wp_profile>/installedApps/cellname/PA_WCM_Authoring_UI .ear/ilwwcm-authoring.war/jsp/html/dialogCloserLaunchPage.jsp)

with the following codes:


/*BEFORE: find the following lines */
dojo.addOnUnload(function() { 
 if (frameElement) { 
  frameElement.scrolling="no"; 
 } 
});

/*AFTER: change the code as follows */
dojo.addOnUnload(function() { 
 if (frameElement) { 
  if (i$.isChrome) { 
   frameElement.scrolling="auto"; 
  } else { 
   frameElement.scrolling="no"; 
  } 
 } 
}); 

There is an additional step for WebSphere Portal 8.5 CF8 and below:

  • Go to <PortalServer>/theme/wp.theme .modules/webapp/installedApps/ThemeModules.ear/ThemeModules .war/modules/dialog/js/.
  • Backup dialog_layer.js and dialog_layer.js.uncompressed.js.
  • Copy dialog_layer.js.uncompressed.js content to dialog_layer.js and modify the file with the following codes:

/*BEFORE: find the following lines */
// Don't display scrollbars until dialog content has loaded, this is set back to auto in onLoadFrame 
// Note: in chrome setting overflow style to hidden will not hide scrollbars 
f.setAttribute("scrolling","no");

/*AFTER: change the code as follows */
// Don't display scrollbars until dialog content has loaded, this is set back to auto in onLoadFrame 
// Note: in chrome setting overflow style to hidden will not hide scrollbars
if(i$.isChrome) { 
 f.setAttribute("scrolling","auto"); 
} else { 
 f.setAttribute("scrolling","no"); 
}

2 thoughts on “[Resolved] WebSphere Portal Bug: Clicking Any Button in Inline Editing Will Causes Chrome Scrollbar To Disappear”

    1. Yup, haha if you are unable to patch the server to the latest CF, maybe you can try the temporary workaround provided by IBM. It works as well *we tested it haha*

Leave a Reply to mygeekjourney Cancel reply

Your email address will not be published. Required fields are marked *