Skip to content

Commit 45e4c04

Browse files
Fix Optional height and/or width alessiomaffeis#62
1 parent 3144ec3 commit 45e4c04

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

PictureInput.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ export default {
580580
<style scoped>
581581
.picture-input {
582582
width: 100%;
583-
flex-grow: 1;
584583
margin: 0 auto;
585584
text-align: center;
586585
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Try it on CodeSandbox: https://codesandbox.io/s/github/alessiomaffeis/vue-pictur
106106

107107
## Props
108108

109-
- **width, height**: (pixels, optional) the maximum width and height of the preview container. The picture will be resized and centered to cover this area. If not specified, the preview container will expand to full width, 1:1 square ratio.
109+
- **width, height**: (pixels, optional) the maximum width and height of the preview container. The picture will be resized and centered to cover this area. If width is not specified, the preview container will expand to full width. If height is not specified, it will be set equal to width.
110110
- **crop**: (boolean, optional) set *:crop="false"* if you wish to disable cropping. The image will be resized and centered in order to be fully contained in the preview container. Default value: true.
111111
- **margin**: (pixels, optional) the margin around the preview container. Default value: 0.
112112
- **radius**: (percentage, optional) The border-radius value for the container. Set *radius="50"* to get a circular container. Default value: 0.

0 commit comments

Comments
 (0)