FF 38 and Chrome 43 handle the attached callback and the resolution of the callstack differently.
In FF the parent and the childs are attached to the dom first. They are visible on breakpoints. And then the content of the attached callback is executed. Which allows to use element.offset_ values.
In Chrome however the attached callback is executed before all elements are attached. Only the first element is in the dom. So getting offset values for them is not possible.
I would like if the FF behavior would be regarded as correct.
Example:
https://xaratas.github.io/
Set a breakpoint on flowChartLink-behavior.html line 12. Paste this xml in the left box and press "Read Quest".
<?xml version="1.0" encoding="utf-8"?>
<QuestData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<NextNodeID>6</NextNodeID>
<Nodes>
<FlowChartNode xsi:type="QuestNode">
<NodeID>0</NodeID>
<Comments />
<PackageID>1</PackageID>
<ContainerNodeID>-1</ContainerNodeID>
<Links>
<FlowChartLink xsi:type="QuestLink">
<FromNodeID>0</FromNodeID>
<ToNodeID>1</ToNodeID>
<PointsToGhost>false</PointsToGhost>
<ClassExtender>
<ExtendedProperties />
</ClassExtender>
<RequiredToExitObjective>false</RequiredToExitObjective>
</FlowChartLink>
</Links>
<ClassExtender>
<ExtendedProperties />
</ClassExtender>
<Conditionals>
<Operator>And</Operator>
<Components />
</Conditionals>
<OnEnterScripts />
<OnExitScripts />
<OnUpdateScripts />
<IsTempText>false</IsTempText>
<EndStates>
</EndStates>
<ExperienceType>Minor</ExperienceType>
<ExperienceLevel>4</ExperienceLevel>
</FlowChartNode>
<FlowChartNode xsi:type="ObjectiveNode">
<NodeID>1</NodeID>
<Comments />
<PackageID>1</PackageID>
<ContainerNodeID>-1</ContainerNodeID>
<Links>
</Links>
<ClassExtender>
<ExtendedProperties />
</ClassExtender>
<Conditionals>
<Operator>And</Operator>
<Components />
</Conditionals>
<OnEnterScripts />
<OnExitScripts />
<OnUpdateScripts />
<IsTempText>false</IsTempText>
<AddendumIDs>
<int>1</int>
<int>2</int>
<int>0</int>
</AddendumIDs>
<ExperienceWeight>2</ExperienceWeight>
</FlowChartNode>
</Nodes>
<QuestType>2</QuestType>
</QuestData>
Expected behavior: A red line is drawn between the elements.
Actual behavior: On chrome the red line starts from top: 0, left: 0
FF 38 and Chrome 43 handle the attached callback and the resolution of the callstack differently.
In FF the parent and the childs are attached to the dom first. They are visible on breakpoints. And then the content of the attached callback is executed. Which allows to use element.offset_ values.
In Chrome however the attached callback is executed before all elements are attached. Only the first element is in the dom. So getting offset values for them is not possible.
I would like if the FF behavior would be regarded as correct.
Example:
https://xaratas.github.io/
Set a breakpoint on flowChartLink-behavior.html line 12. Paste this xml in the left box and press "Read Quest".
Expected behavior: A red line is drawn between the elements.
Actual behavior: On chrome the red line starts from top: 0, left: 0