While editing a style, I cannot crop the image correctly - I cannot select the whole image size. There are always about 10px missing on the right size.
see attachment.

CommentFileSizeAuthor
crop.png390.73 KBanonym-developer

Comments

nils.destoop’s picture

What are the crop settings you are using? Maybe it's the aspect ratio.

anonym-developer’s picture

e.g.
Javascript crop Width: 100, Height: 100, resizable, don't crop if region is not set

when I start to edit the style, and the cropping area is bigger than the image, the cropping area fits 100% the image area. if I start to drag or resize the cropping area, it jumps 14px away from the right border.

firefox, chrome, safari, all the same.

anonym-developer’s picture

I found the problem. it is the following line in the css file:

#imagecrop-preview,
#imagecrop-crop-wrapper {
  margin: 0 12px;
}

Any padding or margin from the left side of the popup-window will be subtracted from the available image-crop-size. the drag is referring to the absolute position, not to the relative position form the #imagecrop-crop-wrapper

nils.destoop’s picture

Status: Active » Needs review

I moved the css to an extra wrapper. Can you check if this fixed the issue for you? I can't, because i didn't have the issue.

anonym-developer’s picture

Status: Needs review » Fixed

is working!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.