Skip to content

Commit

Permalink
Fix image positioning in fit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanziyang committed Apr 6, 2018
1 parent 64b0a6d commit 08bf346
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/simple-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<h1>Vue-Croppa Simple Test</h1>
<croppa :video-enabled="videoEnabled" :replace-drop="replaceDrop" :auto-sizing="autoSizing" :style="autoSizing ? 'width: 50%; height: 400px;' : ''"
ref="myCroppa" v-model="croppa" :width="width" :height="height" @initial-image-loaded="onInitialLoaded" :input-attrs="{ capture: true, class: 'file-input' }"
initial-position="50% 50%" initial-size="cover" @init="onInit" @move="onMove" @zoom="onZoom" @draw="onDraw" @new-image-drawn="onNewImageDrawn"
initial-position="50% 50%" initial-size="contain" @init="onInit" @move="onMove" @zoom="onZoom" @draw="onDraw" @new-image-drawn="onNewImageDrawn"
@loading-start="onLoadingStart" @loading-end="onLoadingEnd" :placeholder="croppa && croppa.loading ? '' : 'Choose A File'"
:initial-image="initialImage" :prevent-white-space="preventWhiteSpace" show-loading :image-border-radius="borderRadius">
<img slot="placeholder" src="static/favicons/android-chrome-512x512.png" class="addon">
Expand Down Expand Up @@ -141,7 +141,7 @@ <h1>Vue-Croppa Simple Test</h1>
sliderVal: 0,
sliderMin: 0,
sliderMax: 0,
preventWhiteSpace: true,
preventWhiteSpace: false,
noSticker: true,
loading: false,
compressRate: '',
Expand Down
5 changes: 3 additions & 2 deletions docs/src/croppa/vue-croppa.js

Large diffs are not rendered by default.

0 comments on commit 08bf346

Please sign in to comment.