On 20 Jan 2009, at 20:14, Andreas Delmelle wrote:

On 20 Jan 2009, at 19:48, Andreas Delmelle wrote:

<snip />
I noticed that BlockContainerLayoutManager.getNextKnuthElementsAbsolute() assumes zero for both the X- and Y-offset of the content-rectangle. Not sure if this is intended, or was a slight oversight.

The closer I look at it, the more it seems intended. "absolute- position" means the position is determined entirely by the top/left/ bottom/right properties...

So, the start-indent can only be used to be inherited by the blocks. It is the width that is computed incorrectly, not the offset.

Possible fix would be to override getIPIndents() in BlockContainerLayoutManager to follow the intention:

    protected int getIPIndents() {
        if (this.isAbsoluteOrFixed()) {
            /* ignore start- or end-indent */
            return 0;
        }
        return super.getIPIndents();
    }



Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to