in public/data/asset/data/draggable.js [117:148]
function resize(x, y, isInit) {
var mainOffset = mainEl.offset();
var mainPosition = mainEl.position();
var mainContentWidth = x - mainOffset.left - BORDER_WIDTH;
var mainContentHeight = y - mainOffset.top - BORDER_WIDTH;
if (isInit || !opt.lockX) {
controlEl.css(
'left',
(mainPosition.left + mainContentWidth + BORDER_WIDTH - controlSize / 2) + 'px'
);
mainEl.css(
'width',
(mainContentWidth + borderBoxBroder) + 'px'
);
}
if (isInit || !opt.lockY) {
controlEl.css(
'top',
(mainPosition.top + mainContentHeight + BORDER_WIDTH - controlSize / 2) + 'px'
);
mainEl.css(
'height',
(mainContentHeight + borderBoxBroder) + 'px'
);
}
label.text(Math.round(mainContentWidth) + ' x ' + Math.round(mainContentHeight));
chartResize();
}