[go: nahoru, domu]

Skip to content

Commit

Permalink
Let border overlap image by 1px to avoid a hairline gap caused by ant…
Browse files Browse the repository at this point in the history
…ialising; resolves #131
  • Loading branch information
hdodenhof committed May 16, 2016
1 parent d2cc96b commit 7b9e2fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ private void setup() {
mBorderRadius = Math.min((mBorderRect.height() - mBorderWidth) / 2.0f, (mBorderRect.width() - mBorderWidth) / 2.0f);

mDrawableRect.set(mBorderRect);
if (!mBorderOverlay) {
mDrawableRect.inset(mBorderWidth, mBorderWidth);
if (!mBorderOverlay && mBorderWidth > 0) {
mDrawableRect.inset(mBorderWidth - 1.0f, mBorderWidth - 1.0f);
}
mDrawableRadius = Math.min(mDrawableRect.height() / 2.0f, mDrawableRect.width() / 2.0f);

Expand Down

0 comments on commit 7b9e2fc

Please sign in to comment.