|
|
@ -78,7 +78,7 @@ module.exports = |
|
|
|
} |
|
|
|
} |
|
|
|
maximise () { |
|
|
|
maximise () { |
|
|
|
this.content.style.display = 'block' |
|
|
|
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.height = this.isMaximised ? '500px' : body.offsetHeight + 'px' |
|
|
|
this.el.style.width = this.isMaximised ? '500px' : body.offsetWidth + 'px' |
|
|
|
this.el.style.width = this.isMaximised ? '500px' : body.offsetWidth + 'px' |
|
|
|
this.isMaximised = !this.isMaximised |
|
|
|
this.isMaximised = !this.isMaximised |
|
|
@ -104,7 +104,7 @@ function dragElement (elmnt) { |
|
|
|
|
|
|
|
|
|
|
|
function dragMouseDown (e) { |
|
|
|
function dragMouseDown (e) { |
|
|
|
e = e || window.event |
|
|
|
e = e || window.event |
|
|
|
if (e.button != 0) return |
|
|
|
if (e.button !== 0) return |
|
|
|
e.preventDefault() |
|
|
|
e.preventDefault() |
|
|
|
// get the mouse cursor position at startup:
|
|
|
|
// get the mouse cursor position at startup:
|
|
|
|
pos3 = e.clientX |
|
|
|
pos3 = e.clientX |
|
|
|