diff --git a/platform/features/layout/res/templates/elements/box.html b/platform/features/layout/res/templates/elements/box.html index 5938549bad..58ecf860d7 100644 --- a/platform/features/layout/res/templates/elements/box.html +++ b/platform/features/layout/res/templates/elements/box.html @@ -1,3 +1,3 @@ -
\ No newline at end of file diff --git a/platform/features/layout/res/templates/elements/line.html b/platform/features/layout/res/templates/elements/line.html index 690fd1a9db..524cd451ca 100644 --- a/platform/features/layout/res/templates/elements/line.html +++ b/platform/features/layout/res/templates/elements/line.html @@ -1,9 +1,9 @@ - diff --git a/platform/features/layout/src/elements/ElementFactory.js b/platform/features/layout/src/elements/ElementFactory.js index bb85efdec3..4ad229e30a 100644 --- a/platform/features/layout/src/elements/ElementFactory.js +++ b/platform/features/layout/src/elements/ElementFactory.js @@ -12,10 +12,10 @@ define( border: "transparent" }, "fixed.line": { - x: 0, - y: 0, - x2: 5, - y2: 3 + x: 5, + y: 9, + x2: 6, + y2: 6 }, "fixed.text": { fill: "transparent", diff --git a/platform/features/layout/src/elements/LineProxy.js b/platform/features/layout/src/elements/LineProxy.js index f5c3d6bc65..fbba73abdb 100644 --- a/platform/features/layout/src/elements/LineProxy.js +++ b/platform/features/layout/src/elements/LineProxy.js @@ -32,11 +32,11 @@ define( }; proxy.width = function () { - return Math.max(element.x, element.x2) - proxy.x(); + return Math.max(Math.abs(element.x - element.x2), 1); }; proxy.height = function () { - return Math.max(element.y, element.y2) - proxy.y(); + return Math.max(Math.abs(element.y - element.y2), 1); }; proxy.x1 = function () {