Skip to content

Commit 580f4e4

Browse files
committed
Fix layout of extended search criteria
1 parent e801bfa commit 580f4e4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/main/kotlin/me/proxer/app/ui/view/ExpandableSelectionView.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,11 @@ class ExpandableSelectionView @JvmOverloads constructor(
203203

204204
radioButton.text = item.value
205205
radioButton.isChecked = selection.contains(item.value)
206-
radioButton.updateLayoutParams<MarginLayoutParams> { marginStart = -context.dip(5) }
206+
207+
radioButton.updateLayoutParams<MarginLayoutParams> {
208+
marginStart = -context.dip(5)
209+
marginEnd = context.dip(5)
210+
}
207211

208212
TooltipCompat.setTooltipText(radioButton, item.description)
209213

@@ -229,7 +233,11 @@ class ExpandableSelectionView @JvmOverloads constructor(
229233

230234
checkBox.text = item.value
231235
checkBox.isChecked = selection.contains(item.value)
232-
checkBox.updateLayoutParams<MarginLayoutParams> { marginStart = -context.dip(5) }
236+
237+
checkBox.updateLayoutParams<MarginLayoutParams> {
238+
marginStart = -context.dip(5)
239+
marginEnd = context.dip(5)
240+
}
233241

234242
TooltipCompat.setTooltipText(checkBox, item.description)
235243

0 commit comments

Comments
 (0)