Commit 517fc25f authored by yann300's avatar yann300

standard

parent e0030a3c
......@@ -29,7 +29,7 @@ var css = csjs`
float: right;
color: ${styles.appProperties.solidBorderBox_BorderColor};
}
.modalAction {
padding-right: 1px;
padding-left: 1px;
......@@ -76,9 +76,9 @@ module.exports =
this.el.style.width = '150px'
this.el.querySelector('.title').style.width = '146px'
}
maximise () {
maximise () {
this.content.style.display = 'block'
var body = document.querySelector('body')
var body = document.querySelector('body')
this.el.style.height = this.isMaximised ? '500px' : body.offsetHeight + 'px'
this.el.style.width = this.isMaximised ? '500px' : body.offsetWidth + 'px'
this.isMaximised = !this.isMaximised
......@@ -104,7 +104,7 @@ function dragElement (elmnt) {
function dragMouseDown (e) {
e = e || window.event
if (e.button != 0) return
if (e.button !== 0) return
e.preventDefault()
// get the mouse cursor position at startup:
pos3 = e.clientX
......
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