Unverified Commit 31d992bb authored by liuzheng's avatar liuzheng Committed by GitHub

Merge pull request #17 from jumpserver/dev

Dev
parents 1a442346 170121ea
...@@ -22,13 +22,13 @@ export class ElementTermComponent implements OnInit, AfterViewInit { ...@@ -22,13 +22,13 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
ngAfterViewInit() { ngAfterViewInit() {
term.col = Math.floor(jQuery(this.el.nativeElement).width() / jQuery('#liuzheng').width() * 8) - 3; term.col = Math.floor(jQuery(this.el.nativeElement).width() / jQuery('#liuzheng').width() * 8) - 3;
term.row = Math.floor(jQuery(this.el.nativeElement).height() / jQuery('#liuzheng').height()) - 5; term.row = Math.floor(jQuery(this.el.nativeElement).height() / jQuery('#liuzheng').height()) - 5;
console.log(term);
// term.term = Terminal({ // term.term = Terminal({
// cols: term.col, // cols: term.col,
// rows: term.row, // rows: term.row,
// useStyle: true, // useStyle: true,
// screenKeys: true, // screenKeys: true,
// }); // });
term.term.resize(term.col, term.row);
term.term.open(this.el.nativeElement, true); term.term.open(this.el.nativeElement, true);
// const that = this; // const that = this;
// window.onresize = function () { // window.onresize = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment