Skip to content

Commit

Permalink
UIBox size snapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansafrin committed Jun 25, 2014
1 parent 0897b04 commit 385dd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Contents/UI/Source/PolyUIBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 385dd62

Please sign in to comment.