TurboPower_ipro: Improved layout of div tags in TIpHtmlPanel

git-svn-id: trunk@58843 -
This commit is contained in:
wp 2018-09-03 17:53:03 +00:00
parent 51c4594159
commit 9e430154c4

View File

@ -2019,7 +2019,7 @@ type
ElementPool : TIpHtmlPoolManager;
AnchorList : {$ifdef IP_LAZARUS}TFPList{$else}TList{$endif};
FControlList : {$ifdef IP_LAZARUS}TFPList{$else}TList{$endif};
FCURURL : string;
FCurURL : string;
DoneLoading : Boolean;
ListLevel : Integer;
PropACache : TIpHtmlPropsAList;
@ -10338,6 +10338,24 @@ begin
end;
procedure TIpHtmlNodeDIV.Enqueue;
var
elem: PIpHtmlElement;
hf, h: Integer;
begin
hf := Props.FontSize;
if FChildren.Count > 0 then begin
h := GetMargin(Props.ElemMarginTop, 0); //hf div 4);
elem := Owner.BuildLinefeedEntry(etSoftLF, h);
EnqueueElement(elem);
end;
inherited Enqueue;
if FChildren.Count > 0 then begin
h := GetMargin(Props.ElemMarginBottom, 0); //hf div 4);
elem := Owner.BuildLinefeedEntry(etSoftLF, h);
EnqueueElement(elem);
end;
end;
(* this is the original code
begin
if FChildren.Count > 0 then begin
if Props.ElemMarginTop.Style=hemsAuto then
@ -10357,6 +10375,7 @@ begin
end;
end;
end;
*)
{ TIpHtmlNodeSPAN }