A question about HTML export

Gülşah Köse gulsah.1004 at gmail.com
Fri Mar 25 20:07:09 UTC 2016


Hi Miklos,

Thank you for the help.

2016-03-25 15:20 GMT+02:00 Miklos Vajna <vmiklos at collabora.co.uk>:
>
> xmloff/source/text/txtparae.cxx:2667
>

>From here i noticed nWidth[1] and nHeight[2] have correct values when
the image is cropped. After i noticed again that

1-) Insert an image
2-) Export as noncropped.html
3-) Open noncropped.html in a web browser
4-) Rightclick of the image and inspect element.

Result:
* <div id=Image1 ... width and height attributes is true. When hover
the div tag it shows correct area.
* <img ... width and height atrributes is correct. When hover the <img
tag it shows correct area.

1-) Insert an image
2-) Crop the image
3-) Export as cropped.html
4-) Open cropped.html in a web browser
5-) Rightclick of the image and inspect element.

Result:
* <div id=Image1 ... width and height attributes is true. When hover
the div tag it shows correct(cropped) area.
* <img ... width and height atrributes is correct(!). When hover the
<img tag it shows WRONG area. It shows the original size of image
area.

The problem is not width and height values. I think the problem is
handling that values. I will continue try to fix that bug, If anybody
have an idea about the solution please share with me.

Thanks


[1] http://opengrok.libreoffice.org/xref/core/xmloff/source/text/txtparae.cxx#2654
[2] http://opengrok.libreoffice.org/xref/core/xmloff/source/text/txtparae.cxx#2712

-- 


Gülşah Köse
about.me/gulsahkose


More information about the LibreOffice mailing list