Grammalecte  Check-in [75f1b73645]

Overview
Comment:[fx] movable panel height depending on window height
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | webext2
Files: files | file ages | folders
SHA3-256: 75f1b73645d0de7ea6c91dbcc8ebf54be9be33a34d7ee892f52ac37d36a848b1
User & Date: olr on 2017-08-15 08:41:47
Other Links: branch diff | manifest | tags
Context
2017-08-15
08:57
[fx] CSS: thinner borders for the panel + adjustments for the lexicographer check-in: a949a0b41c user: olr tags: fx, webext2
08:41
[fx] movable panel height depending on window height check-in: 75f1b73645 user: olr tags: fx, webext2
08:36
[fx] lexicographer: count paragraphs analyzed check-in: eef32ad83f user: olr tags: fx, webext2
Changes

Modified gc_lang/fr/webext/content_scripts/panel_creator.js from [54676d7e75] to [38b104911b].

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;`;
    }