We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a1500 commit b764131Copy full SHA for b764131
src/components/TextListComponent.h
@@ -125,9 +125,8 @@ void TextListComponent<T>::render(const Eigen::Affine3f& parentTrans)
125
int startEntry = 0;
126
127
//number of entries that can fit on the screen simultaniously
128
- int screenCount = (Renderer::getScreenHeight() - cutoff) / entrySize;
129
- screenCount -= 1;
130
-
+ int screenCount = (int)mSize.y() / entrySize;
+
131
if((int)mRowVector.size() >= screenCount)
132
{
133
startEntry = mSelection - (int)(screenCount * 0.5);
0 commit comments