Browse Source

Make the global and the local toolbars wrapper fit the target

pull/2524/head
Artur Arseniev 7 years ago
parent
commit
367dd3bbea
  1. 12
      src/commands/view/SelectComponent.js

12
src/commands/view/SelectComponent.js

@ -610,14 +610,6 @@ export default {
left -= leftR - frCvOff.width; left -= leftR - frCvOff.width;
} }
console.log({
frameOffsetH: frameOffset.height,
topOff: opts.topOff,
top,
elIsShort,
toolbarH
});
toolbarStyle.top = `${top}${unit}`; toolbarStyle.top = `${top}${unit}`;
toolbarStyle.left = `${left}${unit}`; toolbarStyle.left = `${left}${unit}`;
toolbarStyle.opacity = ''; toolbarStyle.opacity = '';
@ -705,6 +697,8 @@ export default {
style.top = topOff + unit; style.top = topOff + unit;
style.left = leftOff + unit; style.left = leftOff + unit;
style.width = pos.width + unit;
style.height = pos.height + unit;
}, },
updateToolsGlobal() { updateToolsGlobal() {
@ -729,6 +723,8 @@ export default {
const leftOff = frameOff.left; const leftOff = frameOff.left;
style.top = topOff + unit; style.top = topOff + unit;
style.left = leftOff + unit; style.left = leftOff + unit;
style.width = pos.width + unit;
style.height = pos.height + unit;
this.updateToolbarPos(el, pos, { this.updateToolbarPos(el, pos, {
topOff, topOff,

Loading…
Cancel
Save