This commit is contained in:
Beatriz Mendes 2022-04-27 15:18:29 +02:00
parent b708a4d7af
commit 7a705a5a54
3 changed files with 10 additions and 5 deletions

View File

@ -482,8 +482,8 @@ export default function BpmnRenderer(
function renderExternalLabel(parentGfx, element) {
var box = {
width: 90,
height: 30,
width: element.width,
height: element.height,
x: element.width / 2 + element.x,
y: element.height / 2 + element.y
};

View File

@ -171,7 +171,8 @@ LabelEditingProvider.prototype.activate = function(element) {
// external labels
if (isLabelExternal(element)) {
assign(options, {
autoResize: true
resizable: true,
autoResize: true,
});
}
@ -291,7 +292,7 @@ LabelEditingProvider.prototype.getEditingBBox = function(element) {
});
}
var width = 90 * zoom,
var width = Math.max(90 * zoom, bbox.width),
paddingTop = 7 * zoom,
paddingBottom = 4 * zoom;

View File

@ -18,7 +18,7 @@ import {
} from '../modeling/util/ModelingUtil';
import {
isLabel
isLabel, isLabelExternal
} from '../../util/LabelUtil';
import {
@ -798,6 +798,10 @@ function canResize(shape, newBounds) {
return true;
}
if (isLabelExternal(shape)) {
return true;
}
return false;
}