cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic IView height not working with SPS 13 and Firefox

Former Member
0 Kudos

Hi all!

We patched out portals (NW Workplace) from SPS 9 to 13 recently and find that automatic iview height is no longer working with firefox.

With help of a javascript debugger I located the bug in pagesupport.js:

SPS 9 (call of window.frames[] with correct parameter frame name)


pageSupport._getContentWindow = function ( ivuFrameObj) {
	try
	{

		return window.frames[ivuFrameObj.name];

	}
	catch(e){return null;}
}

SPS 13 (call of window.frames[] with wrong parameter frame id)

pageSupport._getContentWindow = function ( ivuFrameObj) {

try
     {
         return window.frames[ivuFrameObj.id];

     }
     catch(e){return null;}
}

Firefox does not support window.frames[id] since it is not part of official W3C DOM.

I already opened a SAP OSS call and asked for a hotfix or patch to resolve this bug.

Regards,

Jürgen Wahlmann

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Alright, after several ping-pongs SAP provided me with a fixed pagebuilder.par which solves the problem.

This fix will be in the next patch of the NW Portal.

If you can't wait for the patch and have the same issue, either open an OSS call to SAP requesting the fix or include the following Javascript in your framework pages after pagesupport.js has been loaded:


pageSupport._getContentWindow = function ( ivuFrameObj) {
	try
	{
		return ivuFrameObj.contentWindow; //Works both for Firefox and IE
		//return window.frames[ivuFrameObj.id];
	}
	catch(e){return null;}
}

This overloads the faulty script function and enables Firefox to automaticly resize IView-Iframes.

Regards,

Jürgen