MCPcopy
hub / github.com/shobrook/rebound / rows_max

Method rows_max

rebound/rebound.py:507–518  ·  view source on GitHub ↗
(self, size=None, focus=False)

Source from the content-addressed store, hash-verified

505
506
507 def rows_max(self, size=None, focus=False):
508 if size is not None:
509 ow = self._original_widget
510 ow_size = self._get_original_widget_size(size)
511 sizing = ow.sizing()
512 if FIXED in sizing:
513 self._rows_max_cached = ow.pack(ow_size, focus)[1]
514 elif FLOW in sizing:
515 self._rows_max_cached = ow.rows(ow_size, focus)
516 else:
517 raise RuntimeError("Not a flow/box widget: %r" % self._original_widget)
518 return self._rows_max_cached
519
520 @property
521 def scroll_ratio(self):

Callers 1

renderMethod · 0.80

Calls 2

sizingMethod · 0.45

Tested by

no test coverage detected