mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Merge pull request #9199 from kkthxbye-code/fix-8941
Fixes #8941: Fix apiSelect scrolling while zoomed in chrome
This commit is contained in:
commit
405d0ab972
BIN
netbox/project-static/dist/netbox.js
vendored
BIN
netbox/project-static/dist/netbox.js
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -570,8 +570,9 @@ export class APISelect {
|
|||||||
* additional paginated options.
|
* additional paginated options.
|
||||||
*/
|
*/
|
||||||
private handleScroll(): void {
|
private handleScroll(): void {
|
||||||
|
// Floor scrollTop as chrome can return fractions on some zoom levels.
|
||||||
const atBottom =
|
const atBottom =
|
||||||
this.slim.slim.list.scrollTop + this.slim.slim.list.offsetHeight ===
|
Math.floor(this.slim.slim.list.scrollTop) + this.slim.slim.list.offsetHeight ===
|
||||||
this.slim.slim.list.scrollHeight;
|
this.slim.slim.list.scrollHeight;
|
||||||
|
|
||||||
if (this.atBottom && !atBottom) {
|
if (this.atBottom && !atBottom) {
|
||||||
|
Loading…
Reference in New Issue
Block a user