New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completer draws slightly too small on Chrome #1833
Comments
Broken image ... That strange , i'm developping on chrome, and i've never seen any issues ... |
Image is working fine on all my computers in all of my browsers, with Incognito sessions and everything. What happens if you try to visit the url? It could be that I'm on Chrome 21, and I've seen a couple of CSS artifacts, so it might just be that. |
Actually I wonder if we can't revisit the GUI for completions completely... I don't like a drop list at all as a selection mechanism; drop lists are inherently one-dimensional and are better suited for rapid navigation with a scroll wheel than the keyboard. But tab completion is a keyboard-initiated action, so we should be optimizing the UI for the keyboard. I would much rather prefer that we present the available completions in a 2-d popup text area that shows all available completions (as long as they fit), and that allows 2d cursor movement for selection. If the area isn't large enough to show all completions, then it should support page up/down to bring a new set of completions (as well as single-line arrow key scrolling), with a visual cue at the top/bottom indicating where there's more. What do you think? @Carreau, do you think you want to take a stab at it? |
@minrk @fperez If you look at the |
could you try something like : --- a/IPython/frontend/html/notebook/static/css/notebook.css
+++ b/IPython/frontend/html/notebook/static/css/notebook.css
@@ -260,7 +260,7 @@ div.text_cell_render {
.completions {
position: absolute;
z-index: 10;
- overflow: auto;
+ overflow: hidden;
border: 1px solid grey;
}
@@ -270,6 +270,7 @@ div.text_cell_render {
border: none;
padding: 0px;
margin: 0px;
+ overflow: auto;
font-family: monospace;
} or try to tweak |
@Carreau's two-line patch above addresses the issue I am seeing (and the recent Chrome update 21.0.1171.0 does not have the CSS issues of 21.0.1155.2, but does still draw this poorly). I would consider that patch as closing this issue if you want to do a PR with just that, and we can consider a real GUI completion for 0.14. |
@Carreau, go for it! |
ok, made #1940 as a PR with only 2 lines change.... |
Fix completer css on some Chrome versions (was causing completer to be drawn at the wrong size). Fixes ipython#1833
Fix completer css on some Chrome versions (was causing completer to be drawn at the wrong size). Fixes ipython#1833
Scrollbars are added that shouldn't be, and they obscure the completions:
Doesn't appear to affect Safari or FF.
The text was updated successfully, but these errors were encountered: