Jorge wrote:
On Thu, Jun 04, 2009 at 06:11:43PM +0000, corvid wrote:
I was playing around in dw, and noticed that, whereas form widgets normally like to put much of their height into descent, when style sets the height, Textblock::calcWidgetSize() puts it all into ascent.
I checked firefox and saw that their form widgets ascend.
If we made everything ascend and just put font->descent into the descent, it would make life simpler. Or, nearly. I guess there is RELIEF_Y_THICKNESS, but I could almost ignore that...
Not knowing exactly about the details, I'd be very careful in changing ascents, descents and friends because the may interfere with correct handling of CSS.
If you're sure it's OK to do it, even considering the "details" (e.g. reliefs, spacings, paddings), then why not.
Our details when it comes to form controls don't seem to be exactly right to begin with, so I'm not making anything worse. Little patch: