Răsfoiți Sursa

fix wrt Flow borderWidth changes

Nicolas Cannasse 4 ani în urmă
părinte
comite
fc0445ca7d
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      h2d/CheckBox.hx

+ 2 - 0
h2d/CheckBox.hx

@@ -43,6 +43,8 @@ class CheckBox extends h2d.Flow {
 		var t = h2d.Tile.fromColor(0x404040, width, width);
 		new h2d.Bitmap(t, box);
 
+		var borderWidth = borderLeft + borderRight;
+		var borderHeight = borderTop + borderBottom;
 		var t = h2d.Tile.fromColor(0, width - borderWidth * 2, width - borderHeight * 2);
 		var bg = new h2d.Bitmap(t, box);
 		bg.x = borderWidth;