76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
}
hide () {
this.xPanelNode.style.display = "none";
}
center () {
this.xPanelNode.style = `top: 50%; left: 50%; width: ${this.nWidth}px; height: ${this.nHeight}px; margin-top: -${this.nHeight/2}px; margin-left: -${this.nWidth/2}px;`;
}
stickToLeft () {
let nHeight = window.innerHeight-100;
this.xPanelNode.style = `top: 50%; left: -10px; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px;`;
}
|
>
|
|
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
}
hide () {
this.xPanelNode.style.display = "none";
}
center () {
let nHeight = window.innerHeight-100;
this.xPanelNode.style = `top: 50%; left: 50%; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px; margin-left: -${this.nWidth/2}px;`;
}
stickToLeft () {
let nHeight = window.innerHeight-100;
this.xPanelNode.style = `top: 50%; left: -10px; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px;`;
}
|