Browse Source

Fix return value of Element::GetOffsetParent()

czbming 12 years ago
parent
commit
b088d3655c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/Element.cpp

+ 1 - 1
Source/Core/Element.cpp

@@ -783,7 +783,7 @@ float Element::GetClientHeight()
 // Returns the element from which all offset calculations are currently computed.
 // Returns the element from which all offset calculations are currently computed.
 Element* Element::GetOffsetParent()
 Element* Element::GetOffsetParent()
 {
 {
-	return parent;
+	return offset_parent;
 }
 }
 
 
 // Gets the distance from this element's left border to its offset parent's left border.
 // Gets the distance from this element's left border to its offset parent's left border.