Переглянути джерело

don't take twice the padding into account when we have a background

ncannasse 9 роки тому
батько
коміт
a8556cbc24
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      h2d/Flow.hx

+ 1 - 1
h2d/Flow.hx

@@ -230,7 +230,7 @@ class Flow extends Sprite {
 			if( !isInline ) {
 				super.getBoundsRec(relativeTo, out, false);
 				// TODO : use proper addBounds instead
-				if( relativeTo == parent ) {
+				if( relativeTo == parent && background == null ) {
 					out.xMax += paddingRight + borderWidth;
 					out.yMax += paddingBottom + borderHeight;
 				}