Left property seem to be shifted of 8 pixels lazarus / 31-LCL ---------------------------------------------------------------------- coucout · 2021-08-11 09:50 Hello, I have a window (named fLeftTopWindow. No border, blue background) that I want to put to the left of another one (named fMainWindow). So, I use this code: 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 fLeftTopWindow.Left := fMainWindow.Left - fLeftTopWindow.Width; But I note that the fLeftTopWindow is shifted of exactly 8 pixels (see screenshot enclosed). So I have to adapt my code like this: 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 fLeftTopWindow.Left := (fMainWindow.Left + 8) - fLeftTopWindow.Width; Is it normal ? Is there a solution ? Note: Windows 10 64 bits. 100% display. ---------------------------------------------------------------------- balazsszekely · 2021-08-11 10:04 Quote from: coucout on August 11, 2021, 11:50:53 amHello, I have a window (named fLeftTopWindow. No border, blue background) that I want to put to the left of another one (named fMainWindow). So, I use this code: 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 fLeftTopWindow.Left := fMainWindow.Left - fLeftTopWindow.Width; But I note that the fLeftTopWindow is shifted of exactly 8 pixels (see screenshot enclosed). So I have to adapt my code like this: 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 fLeftTopWindow.Left := (fMainWindow.Left + 8) - fLeftTopWindow.Width; Is it normal ? Is there a solution ? Note: Windows 10 64 bits. 100% display. Please read this: https://stackoverflow.com/questions/59713109/get- size-and-borders-of-the-form