Drew e7ceebd867
LegendItem: fix docs & minor bugs (#1437)
* LegendItem: fix spelling mistake

* LegendItem: remove unused curRow variable

* LegendItem: correct calculation of rowCount

Previously, rowCount would never be updated unless setColumnCount()
was called. This fixes that issue.
It also fixes that setColumnCount() rounded down (floored) the
number of rows, instead of providing an accurate number:
e.g. 4 items in 3 columns would yield rowCount=1, when it should be 2

* LegendItem: remove rowCount argument (not implemented)

Logic to actually use the rowCount argument was not implemented.
Users might expect rowCount to limit the number of rows to e.g. 1,
but that is not what the current code does (it only works with limiting
the number of columns).
Thus, we were exposing an unused/misleading parameter to users.

This can and should be reverted if the logic for limiting the number
of rows is added.

* LegendItem: add colCount docs

* test (LegendItem): remove unused curRow variable

* test (LegendItem): check increasing rowCount as add items

* Fixed logic in placement of items in legend with multiple columns

* Actual row count here should be 2, not 3

Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
2021-02-05 23:00:34 -08:00
..
2017-10-18 00:18:46 -07:00
2021-01-27 10:59:07 -08:00
2013-03-26 13:46:26 -04:00
2013-02-24 23:09:03 -05:00
2021-01-27 10:59:07 -08:00
2021-01-04 22:01:30 -08:00
2013-02-24 23:09:03 -05:00
2021-01-27 10:59:07 -08:00
2013-02-24 23:09:03 -05:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2014-06-27 10:55:55 -04:00
2015-01-17 00:21:33 +08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2014-05-22 01:22:12 -04:00
2013-11-06 23:14:27 -05:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00
2014-12-23 15:55:52 -05:00
2021-01-27 10:59:07 -08:00
2021-01-27 10:59:07 -08:00