##// END OF EJS Templates
Fix #4777 and #7887...
Fix #4777 and #7887 The function in charge of actually converting cursor offset to CodeMirror line number and character number was actually crashing when the cursor was at the last character (loop until undefined, then access length of variable, which is undefined). This was hiding a bug in which when you would completer to a single completion pressing tab after as-you-type filtering, the completion would be completed twice. The logic that was supposed to detect whether or not all completions had a common prefix was actually faulty as the common prefix used to be a string but was then changed to an object. Hence the logic to check whether or not there was actually a common prefix was always true, even for empty string, leading to the deletion of the line (replace by '') in some cases.

File last commit:

r20206:bd6113af
r20538:ae7f6d6a
Show More
pager.less
69 lines | 1.5 KiB | text/x-less | LessCssLexer
Brian E. Granger
Splitting notebook.less into separate files.
r10730 div#pager {
Jonathan Frederic
Kill the layout manager
r19179 background-color: @body-bg;
Brian E. Granger
Lots of CSS tweaks to get nbconvert output looking right.
r15733 font-size: @notebook_font_size;
line-height: @notebook_line_height;
Jonathan Frederic
Fix scroll/resize handle missing behavior.
r19181 overflow: hidden;
Brian E. Granger
Splitting notebook.less into separate files.
r10730 display: none;
Jonathan Frederic
Kill the layout manager
r19179 position: fixed;
bottom: 0px;
width: 100%;
Jonathan Frederic
Fix scrolling for large outputs
r19180 max-height: 50%;
Jonathan Frederic
Thinner handle, single handlebar
r19472 padding-top: 8px;
Jonathan Frederic
Kill the layout manager
r19179
Jonathan Frederic
Make things consistent
r19655 .box-shadow(@global-shadow);
Jonathan Frederic
Kill the layout manager
r19179 /* Display over codemirror */
z-index: 100;
/* Hack which prevents jquery ui resizable from changing top. */
Min RK
"fix" the pager...
r20206 top: auto !important;
MinRK
pager styling...
r10914
pre {
Jonathan Frederic
Kill the layout manager
r19179 line-height: @code_line_height;
color: @text-color;
background-color: @cell_background;
padding: @code_padding;
}
Jonathan Frederic
Fix scroll/resize handle missing behavior.
r19181 #pager-button-area {
position: absolute;
Jonathan Frederic
Thinner handle, single handlebar
r19472 top: 8px;
Jonathan Frederic
Fix scroll/resize handle missing behavior.
r19181 right: 20px;
}
#pager-contents {
Jonathan Frederic
Kill the layout manager
r19179 position: relative;
Jonathan Frederic
Fix scroll/resize handle missing behavior.
r19181 overflow: auto;
width: 100%;
height: 100%;
#pager-container {
position: relative;
padding: 15px 0px;
.border-box-sizing();
}
MinRK
pager styling...
r10914 }
Jonathan Frederic
Kill the layout manager
r19179
Jonathan Frederic
Increase pager handle size.
r19183 .ui-resizable-handle {
top: 0px;
Jonathan Frederic
Thinner handle, single handlebar
r19472 height: 8px;
Jonathan Frederic
Make the pager look better
r19439 background: @cell_background;
border-top: 1px solid @light_border_color;
border-bottom: 1px solid @light_border_color;
/* This injects handle bars (a short, wide = symbol) for
the resize handle. */
&::after {
content: '';
top: 2px;
left: 50%;
height: 3px;
Jonathan Frederic
Thinner handle, single handlebar
r19472 width: 30px;
margin-left: -15px;
Jonathan Frederic
Make the pager look better
r19439 position: absolute;
border-top: 1px solid @light_border_color;
}
Jonathan Frederic
Increase pager handle size.
r19183 }
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }