nasa/fprime-gds

Could not use scroll bar to auto scroll down the event list

Closed this issue · 1 comments

F´ Version F' GDS 2.0
Affected Component events.js

Problem Description

Could not use scroll bar to auto scroll down the event list.
This issue was observed only on Browsers running on Windows OS.

How to Reproduce

  1. Create more than 100 EVRs
  2. Without being connected to a mouse use touchpad to scroll to the bottom of the Event list.
  3. Observe the Event list does not get updated despite having more than 100 EVRs.

Expected Behavior

Event list should get updated when using scroll bar.

The script subtracts element hight from element top to find out if scroll bar is at the bottom. If the result of subtraction is 0 it assumes scroll bar is at the bottom.
The issue is scrollableElm.scrollTop returns an integer on Chrome running on Mac, but it returns a float on Chrome running on Windows as shown below:

Element top, Chrome on Mac:
Mac_Elm_Top

Element top, Chrome on Windows:
Windows_ElmTop