Skip to content

Commit

Permalink
Fix #3930 short height of query panel filter when opened in dashboard (
Browse files Browse the repository at this point in the history
  • Loading branch information
kasongoyo authored and Tobia Di Pisa committed Aug 30, 2019
1 parent 9d091cb commit 0b27a44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/client/plugins/QueryPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const {toggleControl} = require('../actions/controls');

const {groupsSelector, selectedLayerLoadingErrorSelector} = require('../selectors/layers');
const {mapSelector} = require('../selectors/map');
const {isDashboardAvailable} = require('../selectors/dashboard');
const {
crossLayerFilterSelector,
availableCrossLayerFilterLayersSelector,
Expand Down Expand Up @@ -179,16 +180,17 @@ const tocSelector = createSelector(
(state) => state.layers && state.layers.settings || {expanded: false, options: {opacity: 1}},
(state) => state.controls && state.controls.queryPanel && state.controls.queryPanel.enabled || false,
state => mapLayoutValuesSelector(state, {height: true}),
isDashboardAvailable,
appliedFilterSelector,
storedFilterSelector,
(state) => state && state.query && state.query.isLayerFilter,
selectedLayerLoadingErrorSelector
], (enabled, groups, settings, querypanelEnabled, layout, appliedFilter, storedFilter, advancedToolbar, loadingError) => ({
], (enabled, groups, settings, querypanelEnabled, layoutHeight, dashboardAvailable, appliedFilter, storedFilter, advancedToolbar, loadingError) => ({
enabled,
groups,
settings,
querypanelEnabled,
layout,
layout: !dashboardAvailable ? layoutHeight : {},
appliedFilter,
storedFilter,
advancedToolbar,
Expand Down

0 comments on commit 0b27a44

Please sign in to comment.