[
https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400539#comment-13400539
]
Leonardo Uribe commented on TRINIDAD-2277:
------------------------------------------
Investigating this issue, it seems something change in IE 9.
The debugger bundled with that browser shows that dialog._iframe.Document was
renamed to dialog._iframe.document. I tried to do something like this:
if (!dialog._fixedSize)
{
if (_agent.isIE)
{
var documentField = dialog._iframe.Document;
if (typeof dialog._iframe.Document != "undefined")
{
dialog._resizeIFrame(
dialog._iframe.Document.body.scrollWidth+40,
dialog._iframe.Document.body.scrollHeight+40);
}
else
{
dialog._resizeIFrame(
dialog._iframe.document.body.scrollWidth+40,
dialog._iframe.document.body.scrollHeight+40);
}
}
but it does not work (fixes the problem, but does not open a new window and
instead it opens the calendar in the same window.
I tried to enable compatibility mode and it works again!.
> input date popup does not open when using IE 9
> ----------------------------------------------
>
> Key: TRINIDAD-2277
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Reporter: Leonardo Uribe
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9 (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das
> Objekt ist Null oder undefiniert
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
> if (!dialog._fixedSize)
> {
> if (_agent.isIE)
> {
> dialog._resizeIFrame(
> dialog._iframe.Document.body.scrollWidth+40,
> dialog._iframe.Document.body.scrollHeight+40);
> }
> else
> The popup does not open. Using firefox or chrome it works as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira