Scroll bar is not appearing for one page of a site in CMS

Biswajyoti Dutt
Mega Expert

I am developing a site in CMS and I am facing a strange issue. I have implemented the search page using a header dynamic content and a search result dynamic content. The scroll bar does not appear when I check the page. For all other pages the scroll bar appears. I have checked the resulting CSS for the page. I checked .section_header_content_no_scroll in the CSS and compared the contents with that of the other pages, could not find any difference. Could you please help me in troubleshooting this issue and resolving it?

1 ACCEPTED SOLUTION

Hello Manjul,



Thanks for getting back on this one. I have changed the layout of the pages as the problem was occurring due to the script. I am not using a script anymore to resize the window / frame. That solved the problem .



With regards,


Biswajyoti Dutta


View solution in original post

4 REPLIES 4

Manjul Katare
ServiceNow Employee
ServiceNow Employee

Hi Biswajyoti,



Can you share the screenshot and also if there is anyway I can reproduce this issue on OOB instance?



-Manjul


Hi Manjul,



Thanks for taking time to reply. I have debugged the problem a bit. I am getting the error 'Unable to get property 'frameElement' of undefined or null reference', i think the missing scroll bar is because of this error.


function getMainFrame(){


                                  return   frames['gsft_main']||frames['gsft_main_kb'];


                              }


                              window.addEventListener('load', function () {


                                      var mainFrameWindow = getMainFrame();


jQuery(mainFrameWindow.frameElement).ready(function () {


                                              adjustMainFrameHeight(mainFrameWindow);


                                              setTimeout(function () {


                                                      mainFrameWindow = getMainFrame();


................................


.............................


Steps which can probably reproduce the error:


Create a layout with header, chat and content dropzones. I have used a custom header as the header and the search (global) dynamic content as content for this page.



I   am also attaching herewith the script I am using in the layout which might help in debugging the problem.


missing_scrollbar_error.jpg


Hi Biswajyoti,



Just realized that I forgot to write you back on this particular thread though I did try to replicate this issue on OOB instance but I couldn't.


Do you think you can share an update set with your custom code that I can just apply on any OOB instance and then add the corrections to it to make iFrame work ?



Thanks,


Manjul


Hello Manjul,



Thanks for getting back on this one. I have changed the layout of the pages as the problem was occurring due to the script. I am not using a script anymore to resize the window / frame. That solved the problem .



With regards,


Biswajyoti Dutta