src/reportlab/platypus/doctemplate.py
changeset 4228 fd5bbccc7758
parent 4212 c903815560d1
child 4252 fe660f227cac
--- a/src/reportlab/platypus/doctemplate.py	Thu Sep 03 14:59:27 2015 +0100
+++ b/src/reportlab/platypus/doctemplate.py	Mon Oct 05 16:20:47 2015 +0100
@@ -315,7 +315,6 @@
         flowables[0:0] = S
         del frame._generated_content
 
-
 class onDrawStr(str):
     def __new__(cls,value,onDraw,label,kind=None):
         self = str.__new__(cls,value)
@@ -516,6 +515,7 @@
         #context sensitive margins - set by story, not from outside
         self._leftExtraIndent = 0.0
         self._rightExtraIndent = 0.0
+        self._topFlowables = []
         self._frameBGs = []
 
         self._calc()
@@ -648,6 +648,8 @@
         f._leftExtraIndent = self._leftExtraIndent
         f._rightExtraIndent = self._rightExtraIndent
         f._frameBGs = self._frameBGs
+        if self._topFlowables:
+            self._hanging.extend(self._topFlowables)
 
     def handle_frameEnd(self,resume=0):
         ''' Handles the semantics of the end of a frame. This includes the selection of