Overview
| Comment: | [fx] adjusting panel position according to their borders |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | fx | webext2 |
| Files: | files | file ages | folders |
| SHA3-256: |
6bc025d3d788c6d1af1f252eba6e4dbf |
| User & Date: | olr on 2017-08-15 11:49:45 |
| Other Links: | branch diff | manifest | tags |
Context
|
2017-08-15
| ||
| 12:02 | [fx] panel ui adjustment + fix lexicographer display bug check-in: 2aee80c61f user: olr tags: fx, webext2 | |
| 11:49 | [fx] adjusting panel position according to their borders check-in: 6bc025d3d7 user: olr tags: fx, webext2 | |
| 11:47 | [fx] CSS update, split CSS in different files check-in: 7eec389765 user: olr tags: fx, webext2 | |
Changes
Modified gc_lang/fr/webext/content_scripts/panel_creator.js from [bfbf51c76e] to [82647550b0].
| ︙ | ︙ | |||
82 83 84 85 86 87 88 |
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;
| | | | | | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
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: -2px; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px;`;
}
stickToRight () {
let nHeight = window.innerHeight-100;
this.xPanelNode.style = `top: 50%; right: -2px; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px;`;
}
stickToTop () {
let nWidth = Math.floor(window.innerWidth/2);
this.xPanelNode.style = `top: -2px; left: 50%; width: ${nWidth}px; height: ${Math.floor(window.innerHeight*0.45)}px; margin-left: -${nWidth/2}px;`;
}
stickToBottom () {
let nWidth = Math.floor(window.innerWidth/2);
this.xPanelNode.style = `bottom: -2px; left: 50%; width: ${nWidth}px; height: ${Math.floor(window.innerHeight*0.45)}px; margin-left: -${nWidth/2}px;`;
}
reduce () {
// todo
}
logInnerHTML () {
|
| ︙ | ︙ |