commit | 85a7e84034b0a3e9dd2203bb7c202bb7aac8ea13 | [log] [tgz] |
---|---|---|
author | Beth Thibodeau <ethibodeau@google.com> | Wed Jun 23 23:08:55 2021 -0400 |
committer | Beth Thibodeau <ethibodeau@google.com> | Thu Jun 24 11:54:03 2021 -0400 |
tree | d2d7ce1386d4a581c2560f4c95aee1183b06b562 | |
parent | f1c4d4e1a4cf03dae5a3a1df0c0992f3abaf0ba2 [diff] |
Fix settings gear visibility When the settings gear is first initialized the width can be reported as 0, which lead to NaN in the `map` function and throwing off the other calculations. This adds a check to the width so it will simply be set invisible in that case instead Fixes: 185929062 Test: manual (repro steps in bug) Change-Id: Id2a8582e8342d807825536bfcaac7d79a042c7cc