Commit f2c309b6 authored by Steffen Michels's avatar Steffen Michels

fix resizing for bottom sidebar

parent 7b209b00
Pipeline #20024 passed with stage
in 4 minutes and 41 seconds
......@@ -98,7 +98,11 @@ itasks.Panel = {
var startSize = parseInt(window.getComputedStyle(me.domEl).getPropertyValue('height').slice(0,-2));
var resize = function resize(ev) {
me.domEl.style['height'] = (startSize + (ev.clientY - startPos)) + 'px';
if (me.attributes.resizable.includes('bottom')) {
me.domEl.style['height'] = (startSize + (ev.clientY - startPos)) + 'px';
} else {
me.domEl.style['height'] = (startSize + (startPos - ev.clientY)) + 'px';
}
};
window.addEventListener('mousemove', resize, false);
......
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