Ivan Safrin 11 лет назад
Родитель
Сommit
385dd6235d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Modules/Contents/UI/Source/PolyUIBox.cpp

+ 1 - 1
Modules/Contents/UI/Source/PolyUIBox.cpp

@@ -110,7 +110,7 @@ void UIBox::resizeBox(Number newWidth, Number newHeight) {
 	trImage->setPosition(newWidth-trImage->getWidth(), 0);
 	blImage->setPosition(0, newHeight-blImage->getHeight());
 
-	centerImage->Resize(ceil(newWidth-l-r), newHeight-t-b);
+	centerImage->Resize(ceil(newWidth-l-r), ceil(newHeight-t-b));
 
 	lImage->Resize(l, newHeight-t-b);	
 	rImage->Resize(r, newHeight-t-b);