Opened 10 years ago

Last modified 10 years ago

#11639 confirmed Bug

Image2's resizer is displayed far from image if image has a margin

Reported by: Piotrek Koszuliński Owned by:
Priority: Low Milestone:
Component: General Version: 4.3 Beta
Keywords: Cc:


Add to contents styles:

img { margin: 10px }

And the resizer will be displayed 10px from its correct position. Can we do anything about it other than resetting that style?

I think that the only solution is to change the resizer position if margin was discovered, but that's not even close to a clean solution.

On the other hand, if I set padding instead of margin, then resizer also isn't displayed over the image. But in this case it's still displayed over the widget outline (so it looks good), because the outline is also pushed from image. So theoretically we could add border or ~0px padding to widget wrapper, so it'd be pushed from image if it has margin, but then we would break margins collapsing between image and surrounding elements, what's not acceptable.

Change History (2)

comment:1 Changed 10 years ago by Jakub Ś

Status: newconfirmed
Version: 4.34.3 Beta

comment:2 Changed 10 years ago by Nguyen An SEO

You can : padding: 10x

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy