Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Exam is not filling the screen with Question Rows.. #208

Open
haxwell opened this issue Mar 27, 2018 · 1 comment
Open

Create Exam is not filling the screen with Question Rows.. #208

haxwell opened this issue Mar 27, 2018 · 1 comment
Labels

Comments

@haxwell
Copy link
Owner

haxwell commented Mar 27, 2018

When Create Exam starts, it makes a call to the API for 10 rows, and displays them. It then expects that if you scroll down, it should make a call to the API for 10 more rows. It then displays those, until you scroll down again, and so forth.

A problem occurs when the browser window has enough height that it can display the 10 rows without scrolling. In this case, no scroll event is passed to the Create Exam code, and so no request is made for the next 10 rows. Only the original 10 appear on the screen, though there may be hundreds more.

Perhaps to resolve this, we take a measurement of the browser window. If the space available is greater than 10 times the height of a single line row, we should call the API with a request for enough rows to fill the screen. We could divide the space available by the height of a single line row, to get the number of rows to request plus two for good measure.

Or perhaps another solution? Thoughts?

@haxwell
Copy link
Owner Author

haxwell commented Mar 27, 2018

@haxwell haxwell added the bug label Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant