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

disableLogScrolling选项无效 #282

Closed
DMQ opened this issue Sep 10, 2019 · 4 comments
Closed

disableLogScrolling选项无效 #282

DMQ opened this issue Sep 10, 2019 · 4 comments

Comments

@DMQ
Copy link

DMQ commented Sep 10, 2019

disableLogScrolling选项无效,无法禁用日志面板自动滚动到底部。查看历史日志时,有新日志打印总是自动滚动到新日志

@DMQ
Copy link
Author

DMQ commented Sep 10, 2019

补充一下,场景是在vue项目,超过 3 个tab模块,就会导致disableLogScrolling失效

@Maizify
Copy link
Collaborator

Maizify commented Oct 10, 2019

这就神奇了,小于3个tab就没事吗?

@DMQ
Copy link
Author

DMQ commented Oct 11, 2019

这就神奇了,小于3个tab就没事吗?

后来发现,只有log一个tab的时候才真的没事 ̄□ ̄||

@songhongliang
Copy link

songhongliang commented Nov 6, 2019

心跳请求 会导致一直刷新Log 中的布局
目前 我这么改的

window.vConsole = new VConsole();

vConsole.pluginList.network.scrollToBottom = function() {
    if (!this.vConsole.option.disableLogScrolling) {
        var $box = vConsole.$.one('.vc-content');
        $box.scrollTop = $box.scrollHeight - $box.offsetHeight;
    }
}

vConsole.setOption({disableLogScrolling: true});

@Maizify Maizify closed this as completed Apr 28, 2021
Maizify added a commit that referenced this issue Apr 28, 2021
* chore: update plugins list

* fix:  Fix fetch lose `Status, Time` in Network && Fix fetch error for text reponse.

* feat: copy log

* chore: remove transitionEnd

* docs: update changelog

* chore: update NPM dependencies

* docs: update doc

* fix(log): do not sort array's keys

* chore: update syntax

* fix(network): Fix `disableLogScrolling` not working in Network panel. (issue #282, #379)

* chore: add .npmignore

* Perf(System): Rename "System" field to "Client", and add `MacOS` version.

* style(log): fix copy style

* perf(log): use localeCompare to sort keys

* docs: update changelog

Co-authored-by: 王鑫凯 <[email protected]>
Co-authored-by: zimv <[email protected]>
Co-authored-by: akai <[email protected]>
Maizify added a commit that referenced this issue May 7, 2021
* chore: update plugins list

* fix:  Fix fetch lose `Status, Time` in Network && Fix fetch error for text reponse.

* feat: copy log

* chore: remove transitionEnd

* docs: update changelog

* chore: update NPM dependencies

* docs: update doc

* fix(log): do not sort array's keys

* chore: update syntax

* fix(network): Fix `disableLogScrolling` not working in Network panel. (issue #282, #379)

* chore: add .npmignore

* Perf(System): Rename "System" field to "Client", and add `MacOS` version.

* style(log): fix copy style

* perf(log): use localeCompare to sort keys

* docs: update changelog

* fixed: change variable type (#388)

* fix: babel-loader work incorrectly with .babelrc (#392)

* chore: npm audit

* feat: v3.5.1

Co-authored-by: 王鑫凯 <[email protected]>
Co-authored-by: zimv <[email protected]>
Co-authored-by: akai <[email protected]>
Co-authored-by: Sanapoint 曾几何 <[email protected]>
Co-authored-by: claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants