Improving the tab completion UI/design

pull/37/head
Brian E. Granger 13 years ago
parent f04e1d8707
commit 49faf2c939

@ -194,12 +194,12 @@ var IPython = (function (IPython) {
this.complete.attr('id', 'complete');
this.sel = $('<select style="width: auto"/>').attr('multiple', 'true').attr('size', Math.min(10, this.raw_result.length));
var pos = this.editor.cursorCoords();
// TODO: I propose to remove enough horizontal pixel
// to align the text later
this.complete.css('left', pos.left + 'px');
this.complete.css('top', pos.bottom + 'px');
//var pos = this.editor.cursorCoords();
var cur = this.editor.getCursor();
cur.ch = cur.ch-matched_text.length;
var pos = this.editor.cursorCoords(cur);
this.complete.css('left', pos.left-3 + 'px');
this.complete.css('top', pos.bottom+1 + 'px');
this.complete.append(this.sel);
$('body').append(this.complete);

@ -408,6 +408,11 @@ div.text_cell_render {
z-index: 10;
overflow: hidden;
border: 1px solid @border_color;
.corner-all;
.box-shadow(0 5px 10px rgba(0,0,0,.2));
// -moz-box-shadow: 0px 6px 10px -1px #adadad;
// -webkit-box-shadow: 0px 6px 10px -1px #adadad;
// box-shadow: 0px 6px 10px -1px #adadad;
}
.completions select {
@ -418,28 +423,13 @@ div.text_cell_render {
margin: 0px;
overflow: auto;
font-family: monospace;
font-size: 110%;
color: @fontBaseColor;
}
option.context {
background-color: #DEF7FF;
}
option.introspection {
background-color: #EBF4EB;
}
/*fixed part of the completion*/
.completions p b {
font-weight:bold;
}
.completions p {
background: #DDF;
/*outline: none;
padding: 0px;*/
border-bottom: black solid 1px;
padding: 1px;
font-family: monospace;
}
pre.dialog {
background-color: @cell_background;

Loading…
Cancel
Save