Skip to content

ScrollBars #803

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

Closed
jmc420 opened this issue Oct 29, 2016 · 2 comments
Closed

ScrollBars #803

jmc420 opened this issue Oct 29, 2016 · 2 comments

Comments

@jmc420
Copy link

jmc420 commented Oct 29, 2016

Hi

I had a problem in version 1.4.6 with scrollbars. See:

#254

I recently upgraded from version 1.4.6 to version 2.5.6 and I cannot get vertical scroll bars added.

In version 1.4.6 the DOM structure was

div class="react-bs-container
div class="react-bs-table-container" style="height:100%;">
div class="table-header-wrapper">
div class="table-header">
div class="table-container" style="height:100%;">"

I added these css rules to make scrolling work then:

.react-bs-table-container {
height:100% !important;
}

.react-bs-table-container .table-container {
height:90% !important;
}

In version 2.5.6 the DOM structure has changed to:

div class="react-bs-table-container"
div class="react-bs-table" style="height: 100%;"
div class="react-bs-container-header table-header-wrapper"
div class="react-bs-container-body" style="height: 100%;">
table>
thead>
tbody>"

I have not been able to get scrolling to work. Is there something else I need to do to get it to work?

James

@AllenFang
Copy link
Owner

@jmc420, sorry for lately reply. If you wanna get the vertical bar appear, you need to set the height on BootstrapTable, because default height is 100%.

Feel free to discuss with me if problem still remain.

@jmc420
Copy link
Author

jmc420 commented Nov 1, 2016

yes I tracked it down and fixed it with these css rules:

.react-bs-table-container {
height:100%;
}

.react-bs-container-body {
height:95% !important;
overflow:auto;
}

Getting percentage heights and scrollbars to work is always a pain:

http://stackoverflow.com/questions/17060168/scroll-bar-on-div-with-overflowauto-and-percentage-height

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

2 participants