Merge branch 'ent-7754-12108-Problemas-en-Dashboard-con-Varios-Widget-de-Mapas-de-red' into 'develop'

Ent 7754 12108 problemas en dashboard con varios widget de mapas de red

See merge request artica/pandorafms!4628
This commit is contained in:
Daniel Rodriguez 2022-01-12 15:57:13 +00:00
commit be8ae1b82a
2 changed files with 9 additions and 1 deletions

View File

@ -389,7 +389,7 @@ function initialiceLayout(data) {
widgetId: widgetId widgetId: widgetId
}, },
width: widgetId == 14 || widgetId == 2 ? 750 : 450, width: widgetId == 14 || widgetId == 2 ? 750 : 450,
maxHeight: 600, maxHeight: 610,
minHeight: 400 minHeight: 400
}, },
onsubmit: { onsubmit: {

View File

@ -253,6 +253,14 @@ class NetworkMapWidget extends Widget
// Retrieve global - common inputs. // Retrieve global - common inputs.
$inputs = parent::getFormInputs(); $inputs = parent::getFormInputs();
$inputs[] = [
'label' => \ui_print_info_message(
__('It is recommended to have only one such widget in the control panel.'),
'',
true
),
];
// Default values. // Default values.
if (isset($values['xOffset']) === false) { if (isset($values['xOffset']) === false) {
$values['xOffset'] = 0; $values['xOffset'] = 0;