You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2016/10/04 08:33:20 UTC

[jira] [Commented] (CB-11948) Modal dialog (window.confirm) opens behind fullscreen window and cannot be closed

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

Tobias Bocanegra commented on CB-11948:
---------------------------------------

found a solution, thanks to:
  http://stackoverflow.com/questions/20354874/nswindow-levels-and-modal-dialogs

{quote}
The problem seems to be that [NSWindow beginSheet...] internally calls setLevel: on the target modal window with a value lower than NSStatusWindowLevel, so the modal dialog is displayed behind its parent window. The same happens when using an NSAlert from a window with higher window level, the alert is displayed behind.
{quote}

....

{quote}
one thing that comes to mind is to check if NSAlert uses a special NSWindow subclass you could make a category on it and hook the setLevel: method via swizzling (here is an example of extending an existing method via swizzling). there is nothing stopping you from doing this in a plain NSWindow subclass either.
{quote}

> Modal dialog (window.confirm) opens behind fullscreen window and cannot be closed
> ---------------------------------------------------------------------------------
>
>                 Key: CB-11948
>                 URL: https://issues.apache.org/jira/browse/CB-11948
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: OSX
>    Affects Versions: 4.0.0
>            Reporter: Tobias Bocanegra
>            Assignee: Tobias Bocanegra
>             Fix For: Master
>
>
> Opening a modal dialog with {{window.prompt()}} opens it behind the fullscreen and cannot be closed anymore.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org