diff --git a/web/client/plugins/MousePosition.jsx b/web/client/plugins/MousePosition.jsx index 83b792a9e19..fa887706410 100644 --- a/web/client/plugins/MousePosition.jsx +++ b/web/client/plugins/MousePosition.jsx @@ -146,7 +146,7 @@ export default { MousePositionPlugin: Object.assign(MousePositionPlugin, { MapFooter: { name: 'mousePosition', - position: 2, + position: 3, target: 'right-footer', priority: 1 } diff --git a/web/client/plugins/ScaleBox.jsx b/web/client/plugins/ScaleBox.jsx index f8819640faf..e0600f32cc7 100644 --- a/web/client/plugins/ScaleBox.jsx +++ b/web/client/plugins/ScaleBox.jsx @@ -60,7 +60,7 @@ export default { }, { MapFooter: { name: 'scale', - position: 1, + position: 2, target: 'right-footer', priority: 1 } diff --git a/web/client/plugins/WidgetsTray.jsx b/web/client/plugins/WidgetsTray.jsx index 3aa69261e21..65e1c1e0251 100644 --- a/web/client/plugins/WidgetsTray.jsx +++ b/web/client/plugins/WidgetsTray.jsx @@ -10,6 +10,7 @@ import WidgetsTray from './widgets/WidgetsTray'; import autoDisableWidgets from './widgets/autoDisableWidgets'; import epics from '../epics/widgetsTray'; +import { createPlugin } from '../utils/PluginsUtils'; /** * Plugin that allow to collapse widgets. Shows a small tray where to see the collapsed plugins list. @@ -18,7 +19,15 @@ import epics from '../epics/widgetsTray'; * @prop {boolean|string|array} [toolsOptions.seeHidden] hides the widgets under particular conditions. **Must** be the same of rule of the Widget plugin. @see plugins.Widgets. * @class */ -export default { - WidgetsTrayPlugin: autoDisableWidgets(WidgetsTray), +export default createPlugin("WidgetsTrayPlugin", { + component: autoDisableWidgets(WidgetsTray), + containers: { + MapFooter: { + name: 'widgetsTray', + position: 1, + target: 'right-footer', + priority: 1 + } + }, epics -}; +}); diff --git a/web/client/plugins/widgets/WidgetsTray.jsx b/web/client/plugins/widgets/WidgetsTray.jsx index 470c16dc39a..cbaf8102041 100644 --- a/web/client/plugins/widgets/WidgetsTray.jsx +++ b/web/client/plugins/widgets/WidgetsTray.jsx @@ -96,14 +96,16 @@ class WidgetsTray extends React.Component { render() { return this.props.enabled ? (
+ position: "absolute", + zIndex: 1000 + } : {}}> this.props.setExpanded(!this.props.expanded)} />] @@ -137,9 +139,9 @@ export default compose( hasCollapsedWidgets: widgets.filter(({ collapsed } = {}) => collapsed).length > 0, hasTrayWidgets: widgets.length > 0 })), - withProps(({ isMobileAgent, width, singleWidgetLayoutBreakpoint = 1024 }) => { + withProps(({ isMobileAgent }) => { return { - isSingleWidgetLayout: isMobileAgent || width <= singleWidgetLayoutBreakpoint + isSingleWidgetLayout: isMobileAgent }; }), // flag of plugin presence diff --git a/web/client/themes/default/less/widget.less b/web/client/themes/default/less/widget.less index 66dee54a424..f00805aa30d 100644 --- a/web/client/themes/default/less/widget.less +++ b/web/client/themes/default/less/widget.less @@ -496,9 +496,7 @@ } .widgets-tray { - .shadow-soft; padding: 4px; - z-index: 1000; .widgets-bar { > span { button.btn { @@ -511,6 +509,10 @@ border-right: 1px solid @ms-main-border-color; } } + .ms2-border-layout-body, + .ms2-border-layout-content { + flex: none !important; + } } .mapstore-chart-advance-options {