html2canvas icon indicating copy to clipboard operation
html2canvas copied to clipboard

Text is moved down if it is next to an image

Open ofrolenko opened this issue 4 years ago • 3 comments

Please follow the general troubleshooting steps first:

  • [x] You are using the latest version
  • [x] You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:

I have the text and image in the one line. This is displayed correctly in all browsers (Chrome, IE, FF). But canvas with the captured image has a different view. If the image has height is the same as the line height, the text left this area. (In the first line in attached example) If the image has a small hight, the text is moved down. (In the second line in attached example) issueExample.zip bugExample

It is reproduced in the Internet Explorer.

Is there any workaround for this layout?

Specifications:

  • html2canvas version tested with: v1.0.0-rc.5 (full version and min version too)
  • Browser & version: IE11
  • Operating system: Windows10

ofrolenko avatar Oct 21 '19 12:10 ofrolenko

I am also have the same problem

BrightYang0801 avatar May 26 '20 02:05 BrightYang0801

Any solutions to this?

ericshuk avatar Jan 13 '22 20:01 ericshuk

Any news?

LoicKairon avatar Apr 29 '22 11:04 LoicKairon