Browse Source

remove width and height attribute in fullscreen mode (#4834)

Co-authored-by: Dennis Hernández <dennishernandezvargas@gmail.com>
Dustin Utecht 5 years ago
parent
commit
3db88c585c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/bootstrap-table.js

+ 4 - 1
src/bootstrap-table.js

@@ -2619,7 +2619,10 @@ class BootstrapTable {
       }
     }
 
-    if (this.options.height) {
+    if (this.$container.hasClass('fullscreen')) {
+      this.$tableContainer.css('height', '')
+      this.$tableContainer.css('width', '')
+    } else if (this.options.height) {
       const toolbarHeight = this.$toolbar.outerHeight(true)
       const paginationHeight = this.$pagination.outerHeight(true)
       const height = this.options.height - toolbarHeight - paginationHeight