Compare commits

...

1 commit

Author SHA1 Message Date
firelight
9964f6fbf0
fix subtitle clipping 2026-07-31 01:53:01 +00:00
4 changed files with 9 additions and 0 deletions

View file

@ -115,6 +115,9 @@ class SubtitlesFragment : BaseDialogFragment<SubtitleSettingsBinding>(
) )
} }
view.clipToPadding = false
view.clipChildren = false
// we default to 25sp, this is needed as RoundedBackgroundColorSpan breaks on override sizes // we default to 25sp, this is needed as RoundedBackgroundColorSpan breaks on override sizes
val size = data.fixedTextSize ?: 25.0f val size = data.fixedTextSize ?: 25.0f
view.setFixedTextSize(TypedValue.COMPLEX_UNIT_SP, size) view.setFixedTextSize(TypedValue.COMPLEX_UNIT_SP, size)

View file

@ -1076,6 +1076,8 @@
<FrameLayout <FrameLayout
android:id="@+id/subtitle_holder" android:id="@+id/subtitle_holder"
android:clipChildren="false"
android:clipToPadding="false"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">

View file

@ -1116,6 +1116,8 @@
<FrameLayout <FrameLayout
android:id="@+id/subtitle_holder" android:id="@+id/subtitle_holder"
android:clipChildren="false"
android:clipToPadding="false"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">

View file

@ -102,6 +102,8 @@
<FrameLayout <FrameLayout
android:id="@+id/subtitle_holder" android:id="@+id/subtitle_holder"
android:clipChildren="false"
android:clipToPadding="false"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">