Permalink
Browse files

Merge pull request #412 from mreinsch/android_jsonp_fix

don't position the jsonp form off the screen
  • Loading branch information...
2 parents ad6c148 + 5712754 commit 2c50aaedb0ae0ab41fd6ad800cd4b9fb614fe3bd @rauchg rauchg committed Apr 6, 2012
Showing with 7 additions and 5 deletions.
  1. +3 −2 dist/socket.io.js
  2. +1 −1 dist/socket.io.min.js
  3. +3 −2 lib/transports/jsonp-polling.js
View
@@ -3617,8 +3617,9 @@ var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="Sho
form.className = 'socketio';
form.style.position = 'absolute';
- form.style.top = '-1000px';
- form.style.left = '-1000px';
+ form.style.top = '0px';
+ form.style.left = '0px';
+ form.style.display = 'none';
form.target = id;
form.method = 'POST';
form.setAttribute('accept-charset', 'utf-8');
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -85,8 +85,9 @@
form.className = 'socketio';
form.style.position = 'absolute';
- form.style.top = '-1000px';
- form.style.left = '-1000px';
+ form.style.top = '0px';
+ form.style.left = '0px';
+ form.style.display = 'none';
form.target = id;
form.method = 'POST';
form.setAttribute('accept-charset', 'utf-8');

0 comments on commit 2c50aae

Please sign in to comment.