Commit 98bff63
committed
Simplify the constraints check
We can use the much simpler check for the canvas because it is guaranteed to be of the same size. Also we do not need to manually check for the size (and introduce rounding errors) because this is already performed by the cropper itself.
See https://www.woltlab.com/community/thread/315990/1 parent 44dd8d5 commit 98bff63
2 files changed
Lines changed: 0 additions & 45 deletions
File tree
- ts/WoltLabSuite/Core/Component/Image
- wcfsetup/install/files/js/WoltLabSuite/Core/Component/Image
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 207 | | |
233 | 208 | | |
234 | 209 | | |
| |||
Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments