[SOLVED] LAMW : issue with jPanel alignment lazarus / 43-Android ---------------------------------------------------------------------- tintinux · 2016-09-07 06:40 Hi 1) Create a new LAMW GUI project. AndroidModule1.Height is by default defined to 400 and Width=320, Margins=0 1) Put a jPanel (jPanel1) onto AndroidModule1. 2) Set PosRelativeToParent to [rpTop,rpLeft,rpRight] 3) Set LayoutParamWidth to lpMatchParent  (BTW, it could be a done automatically with both rpLeft and rpRight) 4) Set LayoutParamHeight to lpFiveSixthOfParent  Result : jPanel1.Height is changed to 15789312  and the bottom of the panel is obviously not visible. I expected the Height to be set to 400*5/6 = 333 and the bottom visible, with room below for another control 1/6 of module height  ... It is the same result with any lp(N-1)Of(N)OfParent Is there something I don't understand correctly, or is there some bug ? Thanks ---------------------------------------------------------------------- jmpessoa · 2016-09-07 13:36 Please, try PosRelativeToParent = [rpTop] or PosRelativeToParent = [rpTop, rpLeft] or PosRelativeToParent = [rpTop, rpRight] ---------------------------------------------------------------------- A.S. · 2016-09-08 19:58 By some reason, lpFiveSixthOfParent was not handled in GetLayoutParamsByParent2. Also missing:   lpThreeEighthOfParent   lpFiveEighthOfParent   lpSevenEighthOfParent   lpOneSixthOfParent   lpThreeQuarterOfParent ---------------------------------------------------------------------- tintinux · 2016-09-08 21:12 Hi Thanks, the issue is solved for lpFiveSixthOfparent. But there are similar problems for other values (as Anton says). A second panel anchored below the first one and with LayoutparamHeight=lpOneSixthOfParent is not shown entirely. Best regards ---------------------------------------------------------------------- jmpessoa · 2016-09-09 02:20 Ok. Now Others: Quote     lpThreeEighthOfParent      lpFiveEighthOfParent      lpSevenEighthOfParent      lpOneSixthOfParent Fixed!!! Thanks!