зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1117130 - Offset overlap by an additional pixel for fade in toolbar. r=trivial
This commit is contained in:
Родитель
296849b1e3
Коммит
f8836ba656
|
@ -57,8 +57,8 @@ public class FadedMultiColorTextView extends FadedTextView {
|
|||
final float center = getHeight() / 2;
|
||||
|
||||
// Shrink height of gradient to prevent it overlaying parent view border.
|
||||
final float top = center - getTextSize() + 1;
|
||||
final float bottom = center + getTextSize() - 1;
|
||||
final float top = center - getTextSize() + 2;
|
||||
final float bottom = center + getTextSize() - 2;
|
||||
|
||||
canvas.drawRect(left, top, right, bottom, fadePaint);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче