grids: fix inplace editor horizontal margins. Patch by wp. Issue #30054

git-svn-id: trunk@52247 -
This commit is contained in:
ondrej 2016-04-25 10:23:37 +00:00
parent 178c43a3f6
commit f70e004d69

View File

@ -56,6 +56,8 @@ begin
Result:=ACellRect;
Dec(Result.Right);
Dec(Result.Bottom);
Inc(Result.Left, constCellPadding);
Dec(Result.Right, constCellPadding);
TextHeight := ACanvas.TextHeight(' ');
case AColumnLayout of
tlTop: EditorTop:=Result.Top+constCellPadding;