Skip to content

Commit b764131

Browse files
committed
Hopefully fix trying to showing too many entries in TextListComponent.
1 parent c7a1500 commit b764131

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/TextListComponent.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ void TextListComponent<T>::render(const Eigen::Affine3f& parentTrans)
125125
int startEntry = 0;
126126

127127
//number of entries that can fit on the screen simultaniously
128-
int screenCount = (Renderer::getScreenHeight() - cutoff) / entrySize;
129-
screenCount -= 1;
130-
128+
int screenCount = (int)mSize.y() / entrySize;
129+
131130
if((int)mRowVector.size() >= screenCount)
132131
{
133132
startEntry = mSelection - (int)(screenCount * 0.5);

0 commit comments

Comments
 (0)