diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 4a0fa19d2e..36bcefa215 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -576,8 +576,10 @@ function readFields() { } values['width'] = $("input[name=width]").val(); values['width_data_image'] = $("#data_image_width").val(); - if(values['width_data_image'] != 0){ - values['width'] = values['width_data_image']; + if(selectedItem == 'simple_value' || creationItem == 'simple_value'){ + if(values['width_data_image'] != 0){ + values['width'] = values['width_data_image']; + } } values['height'] = $("input[name=height]").val(); values['parent'] = $("select[name=parent]").val(); @@ -2989,7 +2991,7 @@ function eventsItems(drag) { } if(selectedItem == 'simple_value'){ - + $('#data_image_width').val(event.currentTarget.clientWidth); var found = $('#'+idItem).find("img"); if(found.length > 0){ @@ -3344,6 +3346,7 @@ function click_button_toolbox(id) { $("#period_row." + id).css('display', 'none'); break; case 'label': + $("#data_image_width").val(100); toolbuttonActive = creationItem = 'label'; toggle_item_palette(); break; diff --git a/pandora_console/include/functions_visual_map_editor.php b/pandora_console/include/functions_visual_map_editor.php index e2e01a21d6..2ba31b6a48 100755 --- a/pandora_console/include/functions_visual_map_editor.php +++ b/pandora_console/include/functions_visual_map_editor.php @@ -314,7 +314,7 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) { $form_items['module_row']['html'] = '