Skip to content

Commit 101ff9b

Browse files
author
Kelven Yang
committed
Make keyboard selection UI work across all browsers (FireFox, Chrome, IE, Safari)
1 parent 29c510d commit 101ff9b

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎console-proxy/css/ajaxviewer.css‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ body {
7171
#toolbar ul li ul {
7272
position: absolute;
7373
top:32;
74+
width: 130;
75+
height: 66;
7476
display: block;
7577
display: none;
7678
border-top: 1px solid black;
@@ -93,6 +95,7 @@ body {
9395
padding:0 3px 0 3px;
9496
text-decoration:none;
9597
line-height:32px;
98+
vertical-align: bottom; /* this is to fix the list gap in IE */
9699
}
97100

98101
#toolbar ul li ul li a:hover {

‎console-proxy/js/ajaxviewer.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ AjaxViewer.prototype = {
513513
pullDownElement.hover(
514514
function(e) {
515515
var subMenu = pullDownElement.find("ul");
516+
var offset = subMenu.parent().offset();
517+
subMenu.css("left", offset.left);
516518

517519
$("li.current").removeClass("current");
518520
$("li:eq(" + ajaxViewer.currentKeyboard + ")", subMenu).addClass("current");

0 commit comments

Comments
 (0)