Skip to content

Commit

Permalink
Fixed: Does not display many HTML Forms properly #356
Browse files Browse the repository at this point in the history
- Hide objects (images and form controls) that are styled as "Display=none".
  • Loading branch information
BerndGabriel committed Oct 20, 2024
1 parent 2356421 commit da643ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/HTMLSubs.pas
Original file line number Diff line number Diff line change
Expand Up @@ -16683,14 +16683,19 @@ procedure TFloatingObjList.SetItem(Index: Integer; const Item: TFloatingObj);
function TFloatingObjList.GetObjectAt(Posn: Integer; out Obj): Integer;
var
I: Integer;
FlObj: TFloatingObj absolute Obj;
begin
for I := 0 to Count - 1 do
begin
Result := Items[I].StartCurs - Posn;
if Result >= 0 then
begin
TFloatingObj(Obj) := Items[I];
Exit;
FlObj := Items[I];
if FlObj.Display <> pdNone then
begin
TFloatingObj(Obj) := FlObj;
Exit;
end;
end;
end;

Expand Down

0 comments on commit da643ff

Please sign in to comment.