Open RonAbarbanel opened 4 years ago
Crop size should be as specified in paramters
In chrome the resulting crop size is 4 pixels larger in height and width than specified parameters
add:
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
to css for elements with a border:
.croppie-container .cr-viewport, .croppie-container .cr-resizer
and
.croppie-container .cr-resizer-vertical::after, .croppie-container .cr-resizer-horisontal::after
Please recreate your issue using JSbin, JSFiddle, or Codepen.
Expected Behavior
Crop size should be as specified in paramters
Actual Behavior
In chrome the resulting crop size is 4 pixels larger in height and width than specified parameters
Steps to Reproduce the Problem
solution (tested)
add:
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
to css for elements with a border:
.croppie-container .cr-viewport, .croppie-container .cr-resizer
and
.croppie-container .cr-resizer-vertical::after, .croppie-container .cr-resizer-horisontal::after
Example Link
Please recreate your issue using JSbin, JSFiddle, or Codepen.
Specifications