BenUtzmich / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

Ever growing console occurs in iPad #180

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Visit the siab demo site at http://code.google.com/p/shellinabox using an 
ipad. 
2. Console height increases by 1 pixel at a very quick interval

Please provide any additional information below.

We have patched this on our service by including the following if statement 
inside VT100.prototype.resizer at line 1194 of vt100.js

   // Patch for ever growing consoles on iPad.                                                                                                          
   if (navigator.userAgent.match(/iPad/i) != null) {
     height -= 1;
   }

Original issue reported on code.google.com by han...@interpretthis.org on 13 Apr 2012 at 12:02

GoogleCodeExporter commented 8 years ago
It is the calculation of the height variable inside resizer that seems to be 
wrong. Brief investigation suggests that window.innerHeight is 1 pixel too 
large on the iPad for some unknown reason.  

Original comment by han...@interpretthis.org on 13 Apr 2012 at 12:04