LAMW : Margin Dose not changed ?why lazarus / 43-Android ---------------------------------------------------------------------- majid.ebru · 2017-04-17 09:12 Hi in LAMW project,i just put 1 jPanel in the form and : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i       jPanel1.LayoutParamHeight:=lpMatchParent;      jPanel1.LayoutParamWidth:= lpMatchParent;      jPanel1.PosRelativeToParent:=[rpTop];  . and in rotate event : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.AndroidModule1Rotate(Sender: TObject;  rotate: TScreenStyle);begin  case rotate of    ssLandscape:   begin      jPanel1.MarginBottom:= 50;      jPanel1.MarginLeft:= 10;      jPanel1.MarginRight:=10;      jPanel1.MarginTop:= 50;      ShowMessage('Rotate ssLandscape');    end;    ssPortrait:   begin    jPanel1.MarginBottom:= 10;      jPanel1.MarginLeft:= 50;      jPanel1.MarginRight:=50;      jPanel1.MarginTop:= 10;      ShowMessage('Rotate ssPortrait');    end;  end;  Self.UpdateLayout;end;   . . but margin numbers dose not change?why? . help me please . Thank you ---------------------------------------------------------------------- majid.ebru · 2017-04-20 12:58 Hi doesn't any idea? ---------------------------------------------------------------------- jmpessoa · 2017-04-21 02:09 jPanel Fixed! Please, use the new method "SetMarginLeftTopRightBottom" Thank you!