You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Paul Huijnen (JIRA)" <ji...@apache.org> on 2014/12/16 12:00:15 UTC

[jira] [Commented] (WICKET-2059) ModalWindow vertical position in iframes is incorrect

    [ https://issues.apache.org/jira/browse/WICKET-2059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14248140#comment-14248140 ] 

Paul Huijnen commented on WICKET-2059:
--------------------------------------

Just to let you know, not asking for a solution:

We're having the same problem, also with Wicket 6.17.

Solution/work-around as proposed http://steveswinsburg.wordpress.com/2009/05/13/repositioning-a-modalwindow-in-wicket/ doesn't work for us because of cross site scripting errors: Chrome gives "Uncaught SecurityError: Blocked a frame with origin "http://[domain of Wicket app]" from accessing a frame with origin "http:/[domain of surrounding guest site]". Protocols, domains, and ports must match."

In a cross domain IFrame situation, it is not possible (or is it?) to get the viewport height of the top window.

We can solve this problem ourselves by giving the modal window a fixed vertical position. It would be nice if ModalWindow gains 'n modifiable setting for that.

> ModalWindow vertical position in iframes is incorrect
> -----------------------------------------------------
>
>                 Key: WICKET-2059
>                 URL: https://issues.apache.org/jira/browse/WICKET-2059
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.3.5, 1.4-M1, 1.4-M2, 1.4-M3, 1.4-RC1
>            Reporter: Steve Swinsburg
>            Assignee: Johan Compagner
>         Attachments: modalwindowbug.zip
>
>
> In a normal page, the ModalWindow center method in modal.js centres the window in the exact centre of the viewable screen, horizontally and vertically.
> However, in an iframe, the viewport calculation is not correct and if the iframe is long, the ModalWindow can be positioned off screen. Adjustment to the vertical centre calculations needs to be done to make it work with iframes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)