Julie's Document Website / Delphi Menu Engine / Dev Journal / Visual bug fixes and support for inline data
Publish Date
2025-02-06 12:00:00 +0200 UTC
Author
Julie

Visual bug fixes and support for inline data

06-02-2025

The Day started with me testing the measurement system only to find out it worked... like as far as I could see, it worked. This was unexpected.

There were some visual bugs I found, that I fixed after adjusting the BLOCK_OFFSET_X from yesterday to 0.0717 which was more accurate. And by making regular text render objects also apply the offset. (Before, only the empty text displays used the offset) The results produced by this were actually really good and fixed a visual error I encountered this morning:

Before adjusting the constant.
After adjusting the constant.

After that, I worked in some support for the box-sizing property.

box-sizing test. The above is set to the default, content-box value, while the lower container is set to border-box.

As you can see, the below one fits perfectly inside the the content area of the upper box. A quick render tree dump confirms it, the element size of the lower box is the exact same as the content area of the upper one! Yipeee!

After that was fixed, I added some miscellaneous features to the XML parser: