Item marginItem = valueItem;
// If this is an item group, use the first item in it instead
// This is only needed for FontPopupList so far.
if (marginItem instanceof ItemGroup)
marginItem = (Item) ((ItemGroup) marginItem).getContent().get(0);
Border margin = marginItem.getVisualMargin();
// Also take into account any margins the component might have set
if (valueItem != marginItem)
margin = margin.add(valueItem.getMargin());
labelItem.setMargin(margin.top + 3, 4, 0, 0);
content.put(column + ", " + row + ", right, top", labelItem);
}
boolean fullSize = component.getFullSize();
String justification = isRuler || component.getFullSize()