Commit d18c0bfa authored by Bas Lijnse's avatar Bas Lijnse

Merge branch 'fixBottomSideBar' into 'master'

fix resizing for bottom sidebar

See merge request !234
parents 9182a9aa f2c309b6
Pipeline #20027 passed with stage
in 4 minutes and 42 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