Indeed it's even easier ! Thanks Klaus !
Posts by Tristan
-
-
Hi Klaus,
I have an issue with the resizing of layer and its children.
With previous version I used this code (that, if I remember well, you provided) :Code
Display More<events name="bg_scale_map" onresize="bg_automatic_fit_inside(map);" /> <action name="bg_automatic_fit_inside"> if(layer[%1].loaded, div(screenaspect, stagewidth, stageheight); div(imageaspect, layer[%1].imagewidth, layer[%1].imageheight); if(imageaspect GT screenaspect, if (device.mobile, set(layer[%1].width,90%); set(layer[%1].height,prop); , set(layer[%1].width,80%); set(layer[%1].height,prop); ); , if (device.mobile, set(layer[%1].width,prop); set(layer[%1].height,90%); , set(layer[%1].width,prop); set(layer[%1].height,80%); ); ); ); </action>With version 1.21, the layer is resizing well but the children layers have a position shift(I tried this code in the example of winecellar, when resizing there are the position of the three mapspots is shifting).
I have a feeling that it happens because of the decorrelation of the scale and layer dimensions but I didn't find a solution to make this worked correctly.
If anyone has a clue I'm interested !
Thanks !
Tristan