MCPcopy Create free account
hub / github.com/PageBot/PageBot / isOverflow

Method isOverflow

Lib/pagebot/elements/text.py:636–644  ·  view source on GitHub ↗

Answers if this element needs overflow to be solved. This method is typically called by conditions such as Overflow2Next or during drawing if the overflow marker needs to be drawn. NOTE: There is currently not a test if text actually went into the next element. It's

(self, tolerance=0)

Source from the content-addressed store, hash-verified

634 # F L O W
635
636 def isOverflow(self, tolerance=0):
637 """Answers if this element needs overflow to be solved. This method is
638 typically called by conditions such as Overflow2Next or during drawing
639 if the overflow marker needs to be drawn.
640
641 NOTE: There is currently not a test if text actually went into the next
642 element. It's just checking if there is a name defined, not if it
643 exists or is already filled by another flow."""
644 return self.nextElement is None and self.getOverflow()
645
646 def overflow2Next(self, processed=None):
647 """Try to fix if there is overflow. If there is overflow outside the

Callers 2

testMethod · 0.45
testMethod · 0.45

Calls 1

getOverflowMethod · 0.95

Tested by

no test coverage detected