R
R
ruman2012-07-30 18:11:52
Objective-C
ruman, 2012-07-30 18:11:52

How to prevent WebView from changing window position on the screen?

The situation is as follows:
There is a window with a WebView, the Vkontakte authorization page is loaded into the WebView (display=popup).
The JavaScript of this page has a code that moves the popup to the middle of the screen:

window.moveTo(Math.floor((screen.width - 620) / 2), Math.floor((screen.height - box.offsetHeight - 190) / 2));

Because of this code, the application window will also move to the middle of the screen:

How to prevent WebView from changing the position of the window on the screen?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question