Apply palette entry padding to palette header entry

This commit is contained in:
BoykoAlex
2019-11-22 21:09:47 -05:00
parent 46271e48e5
commit 09b87f3985

View File

@@ -364,8 +364,11 @@ export class Palette implements OnInit, OnDestroy, OnChanges {
if (pnode.get('header')) { //attributes.attrs.header) {
// Palette entry header
xpos = startX;
if (ypos) {
ypos += this.paletteEntryPadding.height;
}
pnode.set('position', {x: 0, y: ypos});
ypos += dimension.height + 5;
ypos += dimension.height + this.paletteEntryPadding.height;
} else {
// Palette entry element
if (xpos + cellWidth > parentWidth) {