Re: Absolute-positioned block-containers using left and bottom

2008-07-04 Thread Luca Furini
On Wed, Jul 2, 2008 at 8:24 PM, Andreas Delmelle
[EMAIL PROTECTED] wrote:

 If you have the area's own dimensions, and the complement properties
 (bottom-right), is that not enough?

 For the renderer:
 - top = (bottom - area-bpd - borders - padding))
 - left = (right - area-bpd - borders - padding))

Bottom is the distance from the nearest ancestor reference area
*bottom* edge, not from the top one (the same for left), so we need to
know the reference bpd and ipd.
So, if I read the spec right, a 10pt bottom position set on the same
absolutely positioned block-c would translated into different
top-positions according to the the reference bpd (= the reference
bottom edge).

 It seems so simple... Am I missing something?

*At least* one of us is missing something ;-)

 (It's hot here, too! ;-))

We probably need a summer team located in the southern hemisphere!

Regards
   Luca


Re: Absolute-positioned block-containers using left and bottom

2008-07-04 Thread Andreas Delmelle

On Jul 3, 2008, at 12:33, Luca Furini wrote:

Hi Luca


On Wed, Jul 2, 2008 at 8:24 PM, Andreas Delmelle
[EMAIL PROTECTED] wrote:


If you have the area's own dimensions, and the complement properties
(bottom-right), is that not enough?

For the renderer:
- top = (bottom - area-bpd - borders - padding))
- left = (right - area-bpd - borders - padding))


Bottom is the distance from the nearest ancestor reference area
*bottom* edge, not from the top one (the same for left), so we need to
know the reference bpd and ipd.


Right! /That/ was what I was missing...


So, if I read the spec right, a 10pt bottom position set on the same
absolutely positioned block-c would translated into different
top-positions according to the the reference bpd (= the reference
bottom edge).


Yes, I concur, you need the reference-area bpd to compute 'bottom',  
also when deriving 'top' from that.


Now, I'm wondering... In theory, it should not be too difficult to  
get at this info, since ultimately it is also needed when computing  
'top' or 'left' if they are specified as a percentage. In that case,  
the value is obtained through AbstractBaseLayoutManager.getBaseLength 
() - getReferenceAreaIPD() or getReferenceAreaBPD().




Cheers

Andreas