Skip to content

Commit

Permalink
fix: fix missing objectPosition from in styleFitContainer util
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Jan 27, 2020
1 parent a9798f5 commit 787ffac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { ContentRect } from 'resize-observer/lib/ContentRect';
*/
export const styleFitContainer = ({
objectFit = 'cover',
objectPosition = 'center',
...props
}: React.CSSProperties = {}): React.CSSProperties => ({
display: 'block',
Expand Down

0 comments on commit 787ffac

Please sign in to comment.