Position in javascript must use unity

This commit is contained in:
Dany De Bontridder 2014-03-09 16:04:13 +01:00
parent 12013e9396
commit a2227cf4a2

View file

@ -1919,8 +1919,8 @@ function display_task(p_id)
new Effect.Highlight(obj.id, {scroll: window, queue: 'end'});
}}
);
$(p_id).style.top = posY;
$(p_id).style.left = posX;
$(p_id).style.top = posY+'px';
$(p_id).style.left = posX+'px';
$(p_id).style.display = 'block';
}
@ -2336,8 +2336,8 @@ function search_display_tag(p_dossier, p_prefix)
code_html = unescape_xml(code_html);
remove_waiting_box();
add_div({id: p_prefix + 'tag_div', style: '', cssclass: 'inner_box', drag: 1});
$(p_prefix + 'tag_div').style.top = posY - 80;
$(p_prefix + 'tag_div').style.left = posX - 200;
$(p_prefix + 'tag_div').style.top = posY - 80+"px";
$(p_prefix + 'tag_div').style.left = posX - 200+"px";
remove_waiting_box();
$(p_prefix + 'tag_div').innerHTML = code_html;