}
TextNode prefixNode = (TextNode) e.getHint(KEY_SG_PREFIX_NODE);
if (prefixNode != null) {
- Rectangle2D bounds = prefixNode.getBoundsInLocal();
+ Rectangle2D bounds = node.parentToLocal(prefixNode.localToParent(prefixNode.getBoundsInLocal()));
if (size == null)
size = new Rectangle2D.Double(0, 0, 0, 0);
size.add(bounds);
}
TextNode suffixNode = (TextNode) e.getHint(KEY_SG_SUFFIX_NODE);
if (suffixNode != null) {
- Rectangle2D bounds = suffixNode.getBoundsInLocal();
+ Rectangle2D bounds = node.parentToLocal(suffixNode.localToParent(suffixNode.getBoundsInLocal()));
if (size == null)
size = new Rectangle2D.Double(0, 0, 0, 0);
size.add(bounds);