Increased padding between schematic symbols and their labels

This commit is contained in:
bancika
2017-05-10 16:23:02 +02:00
parent 0e04d168e7
commit a75c9830e5
4 changed files with 6 additions and 2 deletions
@@ -43,9 +43,9 @@ public abstract class AbstractSchematicLeadedSymbol<T> extends AbstractLeadedCom
@Override @Override
protected int calculateLabelYCoordinate(Rectangle2D shapeRect, Rectangle2D textRect, FontMetrics fontMetrics) { protected int calculateLabelYCoordinate(Rectangle2D shapeRect, Rectangle2D textRect, FontMetrics fontMetrics) {
if (labelPosition == LabelPosition.ABOVE) { if (labelPosition == LabelPosition.ABOVE) {
return -1; return -5;
} else { } else {
return (int) (shapeRect.getHeight() + textRect.getHeight() - 1); return (int) (shapeRect.getHeight() + textRect.getHeight());
} }
} }
Binary file not shown.
Binary file not shown.
+4
View File
@@ -1822,6 +1822,10 @@
<changeType>NEW_FEATURE</changeType> <changeType>NEW_FEATURE</changeType>
<description>Using right click to draw a selection rectangle doesn't move objects under the cursor (useful for selecting multiple components that have a big board below)</description> <description>Using right click to draw a selection rectangle doesn't move objects under the cursor (useful for selecting multiple components that have a big board below)</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Increased padding between schematic symbols and their labels</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change> <org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType> <changeType>BUG_FIX</changeType>
<description>Auto-save dialog pops up when running multiple instances of the app at the same time</description> <description>Auto-save dialog pops up when running multiple instances of the app at the same time</description>