@node-projects/web-component-designer 0.0.208 → 0.0.209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IDesignItem } from "../../item/IDesignItem.js";
|
|
2
2
|
import { IStyleDeclaration, IStyleRule, IStylesheet } from "./IStylesheetService.js";
|
|
3
3
|
import { AbstractStylesheetService } from "./AbstractStylesheetService.js";
|
|
4
|
-
|
|
4
|
+
type CssRuleAST = any;
|
|
5
|
+
type CssDeclarationAST = any;
|
|
6
|
+
type CssStylesheetAST = any;
|
|
5
7
|
interface IRuleWithAST extends IStyleRule {
|
|
6
8
|
ast: CssRuleAST;
|
|
7
9
|
declarations: IDeclarationWithAST[];
|
package/dist/elements/widgets/designerView/extensions/grid/EditGridColumnRowSizesExtension.js
CHANGED
|
@@ -84,7 +84,10 @@ export class EditGridColumnRowSizesExtension extends AbstractExtension {
|
|
|
84
84
|
let bounding = target.getBoundingClientRect();
|
|
85
85
|
let containerSize = bounding[percentTarget];
|
|
86
86
|
let amountGaps = percentTarget == "height" ? this.gridInformation.cells.length - 1 : this.gridInformation.cells[0].length - 1;
|
|
87
|
-
let
|
|
87
|
+
let gapValue = percentTarget == "width" ? cp.columnGap : cp.rowGap;
|
|
88
|
+
if (gapValue == "normal")
|
|
89
|
+
gapValue = '0px';
|
|
90
|
+
let gapSize = convertCssUnitToPixel(gapValue, target, percentTarget) ?? 0;
|
|
88
91
|
let containerSizeWithoutGaps = containerSize - gapSize * amountGaps;
|
|
89
92
|
let sizeForFrs = containerSizeWithoutGaps;
|
|
90
93
|
for (let i = 0; i < pixelSizes.length; i++) {
|