diff --git a/html/css/style-classic7.css b/html/css/style-classic7.css
index cf68d4954..8777cff3b 100644
--- a/html/css/style-classic7.css
+++ b/html/css/style-classic7.css
@@ -1585,18 +1585,9 @@ div#preference_div {
}
div#box_search_card {
- position:absolute;
- right:3.625vh;
- top:33vh;
-
-}
-@media only screen and (max-width:994px)
-{
- div#box_search_card {
- top:60vh;
-
- }
+
}
+
@media only screen and (max-width:804px)
{
div#box_search_card {
diff --git a/html/js/card.js b/html/js/card.js
index f51306c01..d19fd2435 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -43,9 +43,10 @@ function boxsearch_card(p_dossier)
remove_waiting_box();
if (req.responseText == 'NOCONX') {
reconnect();
+ return;
}
- var y=posY+15;
- var div_style="left:10%;width:80%;"+";top:"+y+"px";
+ var y=calcy(15);
+ var div_style="position:absolute;"+";top:"+y+"px";
add_div({id:'boxsearch_card_div',cssclass:'inner_box',html:loading(),style:div_style,drag:true});
$('boxsearch_card_div').innerHTML=req.responseText;
sorttable.makeSortable($('tb_fiche'));