From bc748242610cdf6195ca7c8f509440dd90f1e884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 5 Nov 2023 14:00:09 +0100 Subject: [PATCH] Fixed FLA export - DefineEditText size --- CHANGELOG.md | 2 +- .../src/com/jpexs/decompiler/flash/xfl/XFLConverter.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58aad7fb1..010a73d02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,7 +52,7 @@ All notable changes to this project will be documented in this file. - [#2074], [#2074] Use mxmlc.bat file when exe not available for Flex SDK compilation - FLA export - DefineEditText - allow negative letterspacing - [#2112] GFX - new image types in DefineExternalImage -- [#1193] FLA export - DefineEditText position +- [#1193] FLA export - DefineEditText position and size ### Changed - Basic tag info panel always visible even when nothing to display (to avoid flickering) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java index 751e87ea2..a7f46dd9b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java @@ -4333,10 +4333,6 @@ public class XFLConverter { double padding = 2; width -= 2 * padding; height -= 2 * padding; - if (det.hasLayout) { - width -= twipToPixel(det.rightMargin); - width -= twipToPixel(det.leftMargin); - } writer.writeAttribute("width", width); writer.writeAttribute("height", height); if (det.border) {