css
This commit is contained in:
parent
be8f9f33df
commit
08f30bc035
@ -2472,8 +2472,14 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
||||
console.log("Click on .butAction.dropdown-toggle");
|
||||
var parentholder = jQuery(".butAction.dropdown-toggle").closest(".dropdown");
|
||||
var offset = parentholder.offset();
|
||||
var widthdocument = $(document).width();
|
||||
var left = offset.left;
|
||||
var right = $(document).width() - offset.left - parentholder.width();
|
||||
var right = widthdocument - offset.left - parentholder.width();
|
||||
var widthpopup = parentholder.children(".dropdown-content").width();
|
||||
console.log("left="+left+" right="+right+" width="+widthpopup+" widthdocument="+widthdocument);
|
||||
if (widthpopup + right >= widthdocument) {
|
||||
right = 10;
|
||||
}
|
||||
parentholder.toggleClass("open");
|
||||
parentholder.children(".dropdown-content").css({"right": right+"px", "left": "auto"});
|
||||
});
|
||||
|
||||
@ -6546,7 +6546,7 @@ span#select2-boxbookmark-container {
|
||||
font-weight: normal;
|
||||
}
|
||||
.select2-container-multi-dolibarr .select2-choices-dolibarr li {
|
||||
float: left;
|
||||
float: <?php echo $left; ?>;
|
||||
list-style: none;
|
||||
}
|
||||
.select2-container-multi-dolibarr .select2-choices-dolibarr {
|
||||
|
||||
@ -6453,7 +6453,7 @@ span#select2-boxbookmark-container, span#select2-boxcombo-container {
|
||||
font-weight: normal;
|
||||
}
|
||||
.select2-container-multi-dolibarr .select2-choices-dolibarr li {
|
||||
float: left;
|
||||
float: <?php echo $left; ?>;
|
||||
list-style: none;
|
||||
}
|
||||
.select2-container-multi-dolibarr .select2-choices-dolibarr {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user