This commit is contained in:
Matthias Wirth
2022-04-07 17:41:10 +02:00
parent 99156d3b01
commit ab0fa69b1b
2 changed files with 5 additions and 2 deletions

View File

@@ -929,10 +929,10 @@ PlaneObject.prototype.updateIcon = function() {
backgroundFill: bgFill,
stroke: labelStrokeNarrow,
textAlign: 'left',
textBaseline: 'top',
textBaseline: labels_top ? 'bottom' : 'top',
font: labelFont,
offsetX: (this.shape.w *0.5*0.74*this.scale),
offsetY: (this.shape.w *0.5*0.74*this.scale),
offsetY: labels_top ? (this.shape.w *-0.3*0.74*this.scale) : (this.shape.w *0.5*0.74*this.scale),
padding: [1, 0, -1, 2],
}),
zIndex: this.zIndex,