Skip to content

Commit

Permalink
nudge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ndepaola committed May 28, 2022
1 parent f668735 commit 702b550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/text_layers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ var CreatureFormattedTextArea = Class({
// shift vertically if the text overlaps the PT box
var delta = vertically_nudge_creature_text(this.layer, this.pt_reference_layer, this.pt_top_reference_layer);
if (delta < 0) {
this.divider_layer.applyOffset(0, new UnitValue(delta, "px"), OffsetUndefinedAreas.SETTOBACKGROUND);
this.divider_layer.translate(0, new UnitValue(delta, "px"));
}
}
})

0 comments on commit 702b550

Please sign in to comment.