зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1059450 - Fix shape dimension in BackButton (r=mcomella)
This commit is contained in:
Родитель
a6aec2ead6
Коммит
ab42630f64
|
@ -49,10 +49,10 @@ public class BackButton extends ShapedButton {
|
||||||
super.onSizeChanged(width, height, oldWidth, oldHeight);
|
super.onSizeChanged(width, height, oldWidth, oldHeight);
|
||||||
|
|
||||||
mPath.reset();
|
mPath.reset();
|
||||||
mPath.addCircle(width/2, height/2, width/2 - mBorderWidth, Path.Direction.CW);
|
mPath.addCircle(width/2, height/2, width/2, Path.Direction.CW);
|
||||||
|
|
||||||
mBorderPath.reset();
|
mBorderPath.reset();
|
||||||
mBorderPath.addCircle(width/2, height/2, (width/2) - mBorderWidth, Path.Direction.CW);
|
mBorderPath.addCircle(width/2, height/2, (width/2) - (mBorderWidth/2), Path.Direction.CW);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Загрузка…
Ссылка в новой задаче