diff --git a/js/functions.js b/js/functions.js index 3b4180bbf..4059c9cfb 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1850,6 +1850,18 @@ $(document).ready(function() { // Display the "more" text $("table[id='tablestructure'] td[class='more_opts']").show() + // Move the dropdown to the left so the right edge is aligned with the parent cell's right edge + // All the more_opts table cells have the same left offset so choose any + var parent_cell = $("table[id='tablestructure'] td[class='more_opts']"); + var cell_right_edge_offset = parent_cell.offset().left + parent_cell.innerWidth(); + // All the structure_actions_dropdown divs have the same left offset so choose any + var left_offset = cell_right_edge_offset - $(".structure_actions_dropdown").innerWidth(); +// var curr_top_offset = $(".structure_actions_dropdown").offset().top; + + $.each($(".structure_actions_dropdown"), function() { + $(this).offset({ left: left_offset }); + }); + // When "more" is hovered over, show the hidden actions $("table[id='tablestructure'] td[class='more_opts']").hover( function() { diff --git a/themes/darkblue_orange/css/theme_right.css.php b/themes/darkblue_orange/css/theme_right.css.php index 54cedc1b2..b3bcbb281 100644 --- a/themes/darkblue_orange/css/theme_right.css.php +++ b/themes/darkblue_orange/css/theme_right.css.php @@ -1456,11 +1456,9 @@ a.close_enum_editor { position: absolute; padding: 3px; display: none; - margin-left: 10px; - width: 150px; } td.more_opts { display: none; - white-space: wrap; + white-space: nowrap; } \ No newline at end of file diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 52ad301fc..b2b65a850 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1390,8 +1390,6 @@ a.close_enum_editor { position: absolute; padding: 3px; display: none; - margin-left: 10px; - width: 150px; } td.more_opts {