Upon starting or opening a project, the ruler is slightly misaligned with the project boundaries

This commit is contained in:
Bane Stojkovic
2022-12-14 19:13:51 +01:00
parent 796c825f02
commit b45ee77472
3 changed files with 7 additions and 20 deletions
@@ -4278,6 +4278,10 @@
<changeType>BUG_FIX</changeType> <changeType>BUG_FIX</changeType>
<description>Diode symbol doesn't appear in the BOM</description> <description>Diode symbol doesn't appear in the BOM</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Upon starting or opening a project, the ruler is slightly misaligned with the project boundaries</description>
</org.diylc.appframework.update.Change>
</changes> </changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url> <url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version> </org.diylc.appframework.update.Version>
-20
View File
@@ -42,22 +42,15 @@
6 throws / 6 positions 6 throws / 6 positions
7 throws / 7 positions 7 throws / 7 positions
8 throws / 8 positions 8 throws / 8 positions
9 Pin Socket 1 <font color='gray'>[DLH]</font>
9 throws / 9 positions 9 throws / 9 positions
A-O-I REGULATOR A-O-I REGULATOR
AC AC
AWG AWG
Alternate Alternate
Altoid Minty Copper Perfboard <font color='gray'>[pixelwaster]</font>
Altoid Minty Plain Perfboard <font color='gray'>[pixelwaster]</font>
Altoid Minty Vero Board <font color='gray'>[pixelwaster]</font>
And And
Angle Offset Angle Offset
B-C-E BJT B-C-E BJT
Background Background
Bi-Color LED 2-pin
Bi-Color LED 3-pin
Bias Pot 1 <font color='gray'>[DLH]</font>
Box Box
C-B-E BJT C-B-E BJT
Circle Circle
@@ -97,8 +90,6 @@ English
Español Español
Filament Voltage Filament Voltage
Français Français
Fuse Holder
Fuse Holder 2 <font color='gray'>[DLH]</font>
G-D-S JFET G-D-S JFET
G-D-S MOSFET G-D-S MOSFET
G-O-I REGULATOR G-O-I REGULATOR
@@ -107,12 +98,9 @@ G-S-D MOSFET
Generate DIYLC Netlist (excl. Switches) Generate DIYLC Netlist (excl. Switches)
Generate DIYLC Netlist (incl. Switches) Generate DIYLC Netlist (incl. Switches)
Gray Gray
Ground Verical <font color='gray'>[DLH]</font>
Humbucking - 4 leads Humbucking - 4 leads
I-G-O REGULATOR I-G-O REGULATOR
Italiano Italiano
Jack 11 <font color='gray'>[DLH]</font>
Jack 12A <font color='gray'>[DLH]</font>
Lin Lin
Log Log
Markers Markers
@@ -138,10 +126,7 @@ PCB
PNP PNP
Poles Poles
Português Português
Q Pad H
R Pad
Rectangle Rectangle
Relay 1 - H <font color='gray'>[DLH]</font>
Rev log Rev log
S-G-D JFET S-G-D JFET
S-G-D MOSFET S-G-D MOSFET
@@ -162,14 +147,9 @@ Source Style
Source Type Source Type
Srpski Srpski
Stroke Stroke
Switch DPDT <font color='gray'>[DLH]</font>
Switch SPDT <font color='gray'>[DLH]</font>
TO-92 w/ 2 Leads
TO-92 w/ 3 Leads
Ten Ten
Terminal Terminal
Timing Timing
Title Block
Tubular Beveled Tubular Beveled
Xnor Xnor
Xor Xor
@@ -93,6 +93,7 @@ public class CanvasPlugin implements IPlugIn{
scroll.getHorizontalScrollBar().setValue((totalSize.width - visibleSize.width) / 2); scroll.getHorizontalScrollBar().setValue((totalSize.width - visibleSize.width) / 2);
scroll.getVerticalScrollBar().setValue((totalSize.height - visibleSize.height) / 2); scroll.getVerticalScrollBar().setValue((totalSize.height - visibleSize.height) / 2);
getScrollPane().getViewport().setVisible(true); getScrollPane().getViewport().setVisible(true);
updateZeroLocation();
} }
@Override @Override
@@ -473,6 +474,8 @@ public class CanvasPlugin implements IPlugIn{
canvasPanel.scrollRectToVisible(visibleRect); canvasPanel.scrollRectToVisible(visibleRect);
canvasPanel.revalidate(); canvasPanel.revalidate();
updateZeroLocation();
} }
}); });
} }