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

Scroll top when call updateRow with customView extension #7326

Open
fabienwnklr opened this issue May 10, 2024 · 1 comment
Open

Scroll top when call updateRow with customView extension #7326

fabienwnklr opened this issue May 10, 2024 · 1 comment
Labels
awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. custom-view help-wanted Issues we need or would love help from the community to resolve.

Comments

@fabienwnklr
Copy link

Bootstraptable version(s) affected

1.22.5

Description

If i use extension customView and want to update row data, view is refreshed and scrolled to top of table..

Work fine without customView extension

Example(s)

For reproduce scroll to bottom of table and click on updateRow button here : https://live.bootstrap-table.com/code/fabienwnklr/17637

Possible Solutions

I think issue come from here https://github.com/wenzhixin/bootstrap-table/blob/develop/src/extensions/custom-view/bootstrap-table-custom-view.js#L92, super.initBody is call without params where is call with true here https://github.com/wenzhixin/bootstrap-table/blob/develop/src/bootstrap-table.js#L2646

Additional Context

No response

@fabienwnklr fabienwnklr added the Bug Issues which are marked as Bug label May 10, 2024
@UtechtDustin
Copy link
Collaborator

The problem is that you used a fixed height data-height="460".
A fixed height for a custom view don't really makes sense. If you still wan't it you can implement it by you're self (as it is a custom view).
Working demo: https://live.bootstrap-table.com/code/UtechtDustin/17715

@UtechtDustin UtechtDustin added help-wanted Issues we need or would love help from the community to resolve. custom-view awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. and removed Bug Issues which are marked as Bug labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply Issues that are awaiting reply, will be closed if there is no any response in 7 days. custom-view help-wanted Issues we need or would love help from the community to resolve.
Projects
None yet
Development

No branches or pull requests

2 participants