Fixed Incorrect position in Flash Player preview and SWF export

This commit is contained in:
bagdenisov
2021-12-06 08:29:59 +05:00
committed by Jindra Petřík
parent 3a3cac1fe9
commit f125c311f9
2 changed files with 3 additions and 2 deletions

View File

@@ -435,8 +435,8 @@ public class PreviewExporter {
RECT r = ((BoundedTag) treeItem).getRect();
rxmin = r.Xmin;
rymin = r.Ymin;
/*mat.translateX = -r.Xmin;
mat.translateY = -r.Ymin;*/
mat.translateX = -r.Xmin;
mat.translateY = -r.Ymin;
mat.translateX = mat.translateX + width / 2 - r.getWidth() / 2;
mat.translateY = mat.translateY + (showControls ? height - progressBarHeight * 20 : height) / 2 - r.getHeight() / 2;
} else {