mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix incorrect padding application
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199683216
This commit is contained in:
parent
4256759011
commit
b408de9ad9
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ public final class SubtitleView extends View implements TextOutput {
|
|||
// Calculate the bounds after padding is taken into account.
|
||||
int left = getLeft() + getPaddingLeft();
|
||||
int top = rawTop + getPaddingTop();
|
||||
int right = getRight() + getPaddingRight();
|
||||
int right = getRight() - getPaddingRight();
|
||||
int bottom = rawBottom - getPaddingBottom();
|
||||
if (bottom <= top || right <= left) {
|
||||
// No space to draw subtitles.
|
||||
|
|
|
|||
Loading…
Reference in a new issue