Explorar el Código

fix wrt Flow borderWidth changes

Nicolas Cannasse hace 4 años
padre
commit
fc0445ca7d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;