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

Sliver 向上滚动时报错 #468

Closed
temper357 opened this issue Jul 5, 2021 · 0 comments · Fixed by #470
Closed

Sliver 向上滚动时报错 #468

temper357 opened this issue Jul 5, 2021 · 0 comments · Fixed by #470
Assignees
Labels
bug Something isn't working
Milestone

Comments

@temper357
Copy link
Contributor

temper357 commented Jul 5, 2021

使用的 Kraken 版本 | What version of kraken are you using

main

重现步骤 | Steps To Reproduce

Sliver 先向下滚动,再向上滚动报错,节点数多时会出现白屏

image

重现代码 | Code example:

   function createSliverBasicCase() {
    var d = document.createElement('div');

    for (var i = 0; i < 100; i ++) {
      var e = document.createElement('div');
      e.style.background = 'red';
      e.style.width = e.style.height = '99px';
      e.appendChild(document.createTextNode(i + ''));
      d.appendChild(e);
    }

    d.style.display = 'sliver';
    d.style.width = '100px';
    d.style.height = '150px';

    document.body.appendChild(d);

    return d;
  }

  it('basic', async () => {
    createSliverBasicCase();
    await snapshot();
  });
@temper357 temper357 added the bug Something isn't working label Jul 5, 2021
@temper357 temper357 added this to the 0.9 milestone Jul 5, 2021
@temper357 temper357 self-assigned this Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant