diff --git a/src/main/java/ui/eln/ELNModule.java b/src/main/java/ui/eln/ELNModule.java
index 7a1a6b998656c66bee6baeb6b02c8f50d75e2a1c..517a64c6fb9c12017dafc9a8ceaadc973ff6f9a4 100644
--- a/src/main/java/ui/eln/ELNModule.java
+++ b/src/main/java/ui/eln/ELNModule.java
@@ -40,6 +40,7 @@ package ui.eln;
 
 import myutil.GraphicLib;
 import ui.*;
+import ui.eln.sca_eln.ELNComponentCapacitor;
 import ui.eln.sca_eln.ELNComponentNodeRef;
 
 import java.awt.*;
diff --git a/src/main/java/ui/eln/sca_eln/ELNComponentCapacitor.java b/src/main/java/ui/eln/sca_eln/ELNComponentCapacitor.java
index ea2504effe090d3b96f9b83c04e3eccaf8dfb129..53ca1775606ed6895937bd9bced10bb60ef704c7 100644
--- a/src/main/java/ui/eln/sca_eln/ELNComponentCapacitor.java
+++ b/src/main/java/ui/eln/sca_eln/ELNComponentCapacitor.java
@@ -58,7 +58,7 @@ import java.awt.event.ActionListener;
  * @author Irina Kit Yan LEE
  */
 
-public class ELNComponentCapacitor extends TGCScalableWithInternalComponent	implements ActionListener, SwallowTGComponent, ELNComponent {
+public class ELNComponentCapacitor extends TGCScalableWithInternalComponent	implements ActionListener, SwallowTGComponent, SwallowedTGComponent, ELNComponent {
 	protected Color myColor;
 	protected int orientation;
 	private int maxFontSize = 14;
@@ -755,6 +755,10 @@ public class ELNComponentCapacitor extends TGCScalableWithInternalComponent	impl
 				tgcomponent[i].resizeWithFather();
 			}
 		}
+		
+		if (getFather() != null) {
+			resizeWithFather();
+		}
 	}
 	
 	public void resizeWithFather() {