Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Closes #4462 - Adjust layout params of select bookmark folder view
Browse files Browse the repository at this point in the history
  • Loading branch information
ekager authored and boek committed Aug 1, 2019
1 parent 3253f01 commit d42e72f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ class SelectBookmarkFolderAdapter(private val sharedViewModel: BookmarksSharedVi
}

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BookmarkFolderViewHolder {
val view = LibrarySiteItemView(parent.context)
val view = LibrarySiteItemView(parent.context).apply {
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT
)
}

return BookmarkFolderViewHolder(view)
}
Expand Down

0 comments on commit d42e72f

Please sign in to comment.