Andrew V Butt Sr 4 anos atrás
pai
commit
bf7a515bdc
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      gui/src/2D/controls/image.ts

+ 4 - 4
gui/src/2D/controls/image.ts

@@ -825,10 +825,10 @@ export class Image extends Control {
         const rightWidth = this._imageWidth - this._sliceRight;
         const centerWidth = this._sliceRight - this._sliceLeft;
         const centerHeight = this._sliceBottom - this._sliceTop;
-        const targetCenterWidth = (this._currentMeasure.width - rightWidth - leftWidth) + 1;
-        const targetCenterHeight = (this._currentMeasure.height - bottomHeight - topHeight) + 1;
-        const centerLeftOffset = this._currentMeasure.left + leftWidth - 0.5;
-        const centerTopOffset = this._currentMeasure.top + topHeight - 0.5;
+        const targetCenterWidth = (this._currentMeasure.width - rightWidth - leftWidth) + 2;
+        const targetCenterHeight = (this._currentMeasure.height - bottomHeight - topHeight) + 2;
+        const centerLeftOffset = this._currentMeasure.left + leftWidth - 1;
+        const centerTopOffset = this._currentMeasure.top + topHeight - 1;
         const rightOffset = this._currentMeasure.left + this._currentMeasure.width - rightWidth;
         const bottomOffset = this._currentMeasure.top + this._currentMeasure.height - bottomHeight;