After replacing a text and opening it in PS, the text moves when updating the textlayers:
Explanation:
What I am doing is replacing the text of a textlayer according to the content loaded in a text file that is taken as input parameter to the program. Take into account that the text box of the text layer is large to adjust it later. After replacing the text, the textlayer is set to top left, in this process I obtain the height of words and I set the same height to the textbound. The textlayer box would have to have the same height as the words, and in this case it will be located in the upper left, and with the width and height modified.
But when you open it in Photoshop and accept the update banner:
MessageFromPS-UpdateLayers.png (53.7 KB)
The text box is shorter, stopping showing the text completely:
AfterUpdate.png (26.3 KB)
Adjusting the text box so that the text is completely displayed:
AfterUpdate.png (26.3 KB)
PSD used and input txt:
TextMovesAfterUpdateInPS.zip (1.9 MB)
Code used:
Code-Source-TextMovesAfterUpdateInPS.zip (1.2 KB)