mirror of
https://github.com/samsonjs/media.git
synced 2026-04-24 14:37:45 +00:00
Fix incorrect padding application
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199683216
This commit is contained in:
parent
3f2d20140f
commit
cae427ad7e
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