Issue #180: Ever growing console occurs in iPad
Patch taken from comments. More info: https://code.google.com/p/shellinabox/issues/detail?id=180 Refernece: 7ba55246327ad9934ed5d082a12b6cc73f381511
This commit is contained in:
parent
8e68059b50
commit
7e0374b783
1 changed files with 6 additions and 0 deletions
|
@ -1171,6 +1171,12 @@ VT100.prototype.resizer = function() {
|
|||
: (window.innerHeight ||
|
||||
document.documentElement.clientHeight ||
|
||||
document.body.clientHeight))-1;
|
||||
|
||||
// Prevent ever growing consoles on iPad.
|
||||
if (navigator.userAgent.match(/iPad/i) != null) {
|
||||
height -= 1;
|
||||
}
|
||||
|
||||
var partial = height % this.cursorHeight;
|
||||
this.scrollable.style.height = (height > 0 ? height : 0) + 'px';
|
||||
this.padding.style.height = (partial > 0 ? partial : 0) + 'px';
|
||||
|
|
Loading…
Reference in a new issue