Add ItemListbox::ensureItemIsVisible member function

Create issue
Issue #228 resolved
Paul Turner created an issue

The ItemListbox is missing a function to ensure that a specified item is visible in the list. See:

I think the member should probably be added to CEGUI::ScrolledItemListBase so that it's available on any future scrolled lists also.

Reproducibility: N/A

Comments (1)

  1. Paul Turner reporter

    branches/v0-6 rev 1871.

    Added ScrolledItemListBase::ensureItemIsVisibleVert and ScrolledItemListBase::ensureItemIsVisibleHorz members.

    This might have been better as a single virtual function defaulting to a vertical list setup, where the subclass could override the behaviour if needed. However that could not have been done and still maintain ABI compatibility with this branch. I may revisit this later on.

  2. Log in to comment