Palette entry layout adjustment

This commit is contained in:
BoykoAlex
2019-11-19 21:58:53 -05:00
parent 41b9f0fce6
commit ef72b025fd

View File

@@ -356,9 +356,10 @@ export class Palette implements OnInit, OnDestroy, OnChanges {
// Layout palette entry nodes
paletteNodes.forEach(pnode => {
const elementSize = this.palette.findViewByModel(pnode).getBBox();
let dimension: dia.Size = {
width: pnode.get('size').width,
height: pnode.get('size').height
width: elementSize.width,
height: elementSize.height
};
if (pnode.get('header')) { //attributes.attrs.header) {
// Palette entry header