KHTMLPart on Windows

Stefan Bogner sbogner at gmail.com
Tue Sep 13 13:18:13 BST 2011


Hi, 

I have an application that uses KHTMLPart and I compiled it on windows. Works 
fine so far, only rendering seems to be somewhat different on Windows. 

I created 2 screenshots:

http://imageshack.us/f/508/khtmlpartlinux.jpg/
http://imageshack.us/f/853/khtmlpartwin.jpg/

Sorry for the blurred text, but it contains personal data. Anyway, as you can 
see on Linux all looks fine but on Windows the images are positioned 
differently. 

The images are defined via css:

".dotlinehoriz {background-image: url(" + dir + "dotlinebg_horiz.gif); 
height:1px; line-height:1px; overflow:hidden;}"
".dotlinevert {background-image: url(" + dir + "dotlinebg_vert.gif); 
width:1px;}"

And then used like this in the HTML code:

"<td width='1' rowspan='4' class='dotlinevert'>"
"<img src='" + dir + "spacer.gif' width='1' height='1' border='0' alt=''>"
"</td>"

Please don't ask why that is ;-) I am not exactly an HTML/CSS expert, I just 
took over the stylesheet and the HTML code from an existing website. Anyway, 
since it is working fine in all browsers and even khtmlpart on Linux I think 
its correct that way. 

Any suggestions on how to fix this? 

Thanks
Stefan





More information about the kfm-devel mailing list