mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 17:30:30 +02:00
Sparta docked form editor: Increase limited width to 5K. Issue #31086, patch from AlexeyT.
git-svn-id: trunk@53702 -
This commit is contained in:
parent
20f18a338c
commit
4f75913e96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user