You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jason Rosenberg (JIRA)" <ji...@apache.org> on 2009/04/03 22:40:13 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=12695565#action_12695565 ] 

Jason Rosenberg commented on WICKET-2059:
-----------------------------------------

This problem is limited only to iframes.  If you have a browser window that is not very large vertically, the ModalWindow will popup with the title bar above the top of the window, and it's not possible to close the window without closing the browser.  Even if you resize the browser, the top of the window does not appear.

A simple addition to the ModalWindow class would be to add a method like
setInitialPosition(int x,int y);

Jason

> 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: Matej Knopp
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.