mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-14 12:36:14 +02:00
TurboPower_ipro: Improved layout of div tags in TIpHtmlPanel
git-svn-id: trunk@58843 -
This commit is contained in:
parent
51c4594159
commit
9e430154c4
@ -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 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user