Skip to content

Commit

Permalink
Fix width incorrectly passed to showkaseHeightDp param in `Showka…
Browse files Browse the repository at this point in the history
…seMetadata`. (#336)

Most likely a typo I suppose.

Co-authored-by: Vinay Gaba <vinaygaba@gmail.com>
  • Loading branch information
julioromano and vinaygaba committed Aug 25, 2023
1 parent fbce7d2 commit 9f49a32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ internal fun getShowkaseMetadataFromCustomAnnotation(
showkaseName = showkaseName,
showkaseGroup = showkaseGroup,
showkaseWidthDp = if (width == -1) null else width,
showkaseHeightDp = if (height == -1) null else width,
showkaseHeightDp = if (height == -1) null else height,
insideWrapperClass = commonMetadata.showkaseFunctionType == ShowkaseFunctionType.INSIDE_CLASS,
insideObject = commonMetadata.showkaseFunctionType.insideObject(),
element = element,
Expand Down

0 comments on commit 9f49a32

Please sign in to comment.