Hi Hans, when you process the following example you can see that the layer box is positioned in MkII at the top of the page but in MkIV at the bottom, why has this changed? \definelayer[test][width=\paperwidth,height=22mm,option=test] \setlayer[test][x=104mm,y=11mm]{\externalfigure[cow][width=56mm]} \setupbackgrounds[page][background=test] \starttext Hello \stoptext The change happened in this code block where you moved \vss from the bottom of the box to the top: \def\pack_layers_flush_indeed#1#2% quite core, so optimized {\begingroup % already grouped ... \ifx\p_pack_layers_option\v!test \ruledvbox \else \vbox \fi \ifx\p_pack_layers_method\v!overlay to \overlayheight \fi \layoutcomponentboxattribute {\vss \hbox \ifx\p_pack_layers_method\v!overlay to \overlaywidth \fi {\box\nextbox \hss}% }%\vss}% ... \endgroup} Wolfgang
On 9-3-2012 09:15, Wolfgang Schuster wrote:
indeed ... the problem is that in some case we work ulx,uly and in others bottom top (as positions are llx,lly) ... and I need to find a solution that works for both cases
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster