Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.2.8-core
-
None
-
None
-
IE7, Windows XP
Description
When trying to view following page in Trinidad dialog there is incorrect sizing occured
<f:view
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<trh:html>
<trh:head title="Title"/>
<trh:frameBorderLayout>
<f:facet name="center">
<trh:frame name="content" source="#
</f:facet>
</trh:frameBorderLayout>
</trh:html>
</f:view>
The problem is inside javascript function _sizeWin() (in Window.js) - in it's code there is supposed that content page use <body> tag, but in this page there is <frameset> tag, so parsing of xxxMargin properties evaluated to NaN. As workaround you may add these properties in script:
<f:view
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<trh:html>
<trh:head title="Title">
<trh:script text="
function fixFramesetMargins()
{
var body = document.body;
if(body && body.tagName=='FRAMESET')
{ body.topMargin='0'; body.bottomMargin='0'; body.leftMargin='0'; body.rightMargin='0'; }
}
"/>
</trh:head>
<trh:frameBorderLayout onload="fixFramesetMargins()">
<f:facet name="center">
<trh:frame name="content" source="#{pageFlowScope.contentURL}
"/>
</f:facet>
</trh:frameBorderLayout>
</trh:html>
</f:view>
But better solution would be to fix code in _sizeWin() function.