Piotr Labudda 10 лет назад
Родитель
Сommit
ef40139dda
1 измененных файлов с 12 добавлено и 1 удалено
  1. 12 1
      SE/se-lib/TableAjax.php

+ 12 - 1
SE/se-lib/TableAjax.php

@@ -2002,11 +2002,22 @@ class TableAjax extends ViewAjax {
 					_mapEditorWrap.append(mapEditor);
 				}
 
+				_mapEditorWrap.css({padding:'5px'});
 				_mapEditorDialog = _mapEditorWrap.dialog({
 					width: 540,
 					minWidth: 400,
 					minHeight: 400,
-					resizeStop: function(){
+					resizeStart: function(e, d) {
+						jQuery(this).children(":first").css({display:'none'});
+					},
+					resizeStop: function(e, d){
+						console.log('d', d);
+						var n = jQuery(this),
+								mapWrap = n.children(":first"),
+								map = mapWrap.children(":first");
+						n.width(n.parent().innerWidth() - 20);
+						map.css({height: n.height(), width: n.width()});
+						mapWrap.css({display: 'block'});
 						_mapEditor.TableAjaxMapUpdateSize(); //to prevent drag-zoom error
 					},
 					dragStop: function(){