1352 views

Description

This issue also occurs when navigating to /ess/knowledge_splash.do.

Steps to Reproduce

 

  1. Add 30 or more articles to a Knowledge Base category.
  2. Navigate to /ess/knowledge_splash.do.
  3. Select the category.
    Note that you cannot scroll to the bottom of the articles listing. 

Workaround

This issue can be fixed by installing the following workaround:

  1. Open an instance with the Geneva or Helsinki version installed.
  2. Log in as ServiceNow Admin.
  3. From the left navigation bar, search for UI Scripts.
  4. Click Create New.
  5. Fill in the following information:
    • API name: <any name of your choice>
    • Application: Global
    • Select the Global option
    • Select the Active option
    • Description: <any description of your choice>
    • Copy the below script (content between /////SCRIPT START///// and /////SCRIPT END/////)

 

/////SCRIPT START/////

 

(function() {

//alert(3);

var essUrl = 'ess';

var pollingDelay = 250;

var kbIframeHeight = 0;

// Most resize scripts run inside the iframe

var resizeIframeFix = function() {

   setTimeout(function() {

     var height;

     if ($j('.form_body').length != 0) {

       // Resize forms such as Case and Problem

       height = $j('.section_header_div_no_scroll').height() + $j('.form_body').height() + $j('.navbar-fixed-bottom ').height() + $j('.tabs2_spacer').height() + $j('.tabs2_list').height() + 100;

     }

     // Resize catalog forms

     if (window.location.href.indexOf('com.glideapp.servicecatalog_cat_item_view.do') != -1) {

       height = $j('body > table:nth-of-type(1)').height() + $j('#item_table').height() + $j('body > table:nth-of-type(3)').height() + 100;

     }

     top.window.$j('#gsft_main').height(height);

     resizeIframeFix();

   }, pollingDelay);

};

// Knowledge v3 interface requires a script running from the parent document because the interface does not inject global UI Scripts

var resizeIframeFixAngularKB = function() {

   setTimeout(function() {

     if ($('gsft_main').contentWindow.$j) {

       var height = $('gsft_main').contentWindow.$j('.application').height();

if(kbIframeHeight != height) {

$j('#gsft_main').height(height);

kbIframeHeight = $('gsft_main').contentWindow.$j('.application').height();

}

     }

     resizeIframeFixAngularKB();

   }, pollingDelay);

};

// Initiate resize inside iframes

if (top.window.location.href.indexOf(essUrl) != -1 && top != window) {

   resizeIframeFix();

}

// Initiate resize for Knowledge v3 homepage

if (top == window && window.location.href.indexOf(essUrl) != -1) {

   addAfterPageLoadedEvent(function() {

     if ($('gsft_main')) {

       if ($('gsft_main').src.indexOf('$knowledge.do') != -1 || $('gsft_main').src.indexOf('knowledge_home_launcher.do') != -1) {

         resizeIframeFixAngularKB();

       }

     }

   });

}

})();

 

/////SCRIPT END/////

 


Related Problem: PRB660783

Seen In

Fuji Patch 12 Hot Fix 1
Fuji Patch 13 Hot Fix 1
Geneva Patch 1
Geneva Patch 3 Hot Fix 2
Geneva Patch 5
Geneva Patch 6 Hot Fix 2
Geneva Patch 7
Geneva Patch 8
Helsinki
Helsinki Patch 0 Hot Fix 1
Helsinki Patch 1
Helsinki Patch 2
Helsinki Patch 4

Fixed In

Geneva Patch 8
Helsinki Patch 4
Istanbul

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-02-26 03:44:18
Published:2016-07-13