diff --git a/js/src/qgrid.css b/js/src/qgrid.css index 7875a231..1f86825e 100644 --- a/js/src/qgrid.css +++ b/js/src/qgrid.css @@ -76,72 +76,6 @@ display: none; } -.qgrid-modal .q-grid-toolbar .close-modal-btn { - display: block; -} - -.qgrid-modal .full-screen-btn, -.qgrid-modal .modal-header, -.qgrid-modal .modal-footer { - display: none; -} - -.qgrid-modal { - width: 100%; - height: 100%; - margin: 0px; -} - -.qgrid-modal .modal-dialog { - position: absolute; - top: 20px; - left: 20px; - bottom: 20px; - right: 20px; - margin: 0px; - width: auto; - height: auto; -} - -.qgrid-modal .modal-content { - position: absolute; - left: 0px; - right: 0px; - top: 0px; - bottom: 0px; -} - -.qgrid-modal .modal-body { - position: absolute; - padding: 15px; - top: 0px; - left: 0px; - bottom: 0px; - right: 0px; -} - -.qgrid-modal .modal-body button.close { - margin-top: 7px; - margin-right: 14px; -} - -.qgrid-modal .q-grid-container { - bottom: 25px; - left: 20px; - right: 20px; - position: absolute; - top: 15px; -} - -.qgrid-modal .q-grid { - position: absolute; - top: 33px; - bottom: 0px; - left: 0px; - right: 0px; - height: auto !important; -} - .q-grid-toolbar .full-screen-btn, .q-grid-toolbar .close-modal-btn { height: 18px; diff --git a/js/src/qgrid.widget.js b/js/src/qgrid.widget.js index 7c5efd37..0fcb3a47 100644 --- a/js/src/qgrid.widget.js +++ b/js/src/qgrid.widget.js @@ -7,13 +7,6 @@ var slider_filter = require('./qgrid.sliderfilter.js'); var text_filter = require('./qgrid.textfilter.js'); var boolean_filter = require('./qgrid.booleanfilter.js'); var editors = require('./qgrid.editors.js'); -var dialog = null; -try { - dialog = require('base/js/dialog'); -} catch (e) { - console.warn("Qgrid was unable to load base/js/dialog. " + - "Full screen button won't be available"); -} var jquery_ui = require('jquery-ui-dist/jquery-ui.min.js'); require('slickgrid-qgrid/slick.core.js'); @@ -116,30 +109,6 @@ class QgridView extends widgets.DOMWidgetView { this.buttons.tooltip('disable'); this.full_screen_btn = null; - if (dialog) { - this.full_screen_modal = $('body').find('.qgrid-modal'); - if (this.full_screen_modal.length == 0) { - this.full_screen_modal = $(` - - `).appendTo($('body')); - } - this.full_screen_btn = $(` -