patch: padding in form elements

Germain Garand germain at ebooksfrance.org
Wed Nov 7 16:32:07 GMT 2007


Le Mercredi 07 Novembre 2007 05:12, Charles Samuels a écrit :
> Allan Sandfeld Jensen wrote, on Sunday 2007 November 04:
> > What you need to do is return the padding in the "paddingTop",
> > "paddingBottom", etc functions when padding is used.
> > They are currently hardcoded to return 0.
>
> Are you sure?

I think Allan's right, because if the engine is not aware of the padding and 
it's all done on Qt's side, it will never be able to properly calculate 
content-box/border-box.

> If I do that, khtml appears to consider the padding when
> positioning the form elements, which means they're all shifted by the size
> of the padding.

mmh, it's stupid because I'm quite sure I had a patch nearly handling that, 
that you could have a look at. Unfortunately I can't find the BR where I 
attached it.

It certainly is where I attached the testcase I gave you the link to, but I 
don't know how to find a BR number from an attachment number :-/

Greetings,
Germain




More information about the kfm-devel mailing list