Sparta docked form editor: Increase limited width to 5K. Issue #31086, patch from AlexeyT.

git-svn-id: trunk@53702 -
This commit is contained in:
juha 2016-12-16 14:12:07 +00:00
parent 20f18a338c
commit 4f75913e96

View File

@ -151,14 +151,17 @@ begin
end;
procedure TFormImpl.SetPublishedBounds(AIndex: Integer; AValue: Integer);
const
cMinWidth = 135;
cMaxWidth = 5*1024; // huge Mac monitors have 5K pixels width
begin
if AIndex = 2 then
if AValue < 135 then
AValue := 135;
if AValue < cMinWidth then
AValue := cMinWidth;
if AIndex in [2, 3] then
if AValue > 4096 then
AValue := 4096;
if AValue > cMaxWidth then
AValue := cMaxWidth;
case AIndex of
0: FHackLeft := AValue;