ignism / nucleus-dark-ui

Atom UI theme
MIT License
112 stars 34 forks source link

BibTeX entries in panel are cropped #94

Open edwinksl opened 7 years ago

edwinksl commented 7 years ago

This seems to be a bug related to https://github.com/ignism/nucleus-dark-ui/commit/c1f2d608ead06127f131d965b9cad1ebca495d6e. I am using the Nucleus Dark UI with the latextools package. When I type \cite{, a panel that contains the BibTeX entries pops up as expected. However, if the number of items in the BibTeX file is too large, then some of the items are cropped off.

As a minimal example example, create a test.bib file that contains:

@article{test_1,
title = {Test 1},
author= {Test 1}
}

@article{test_2,
title = {Test 2},
author= {Test 2}
}

@article{test_3,
title = {Test 3},
author= {Test 3}
}

@article{test_4,
title = {Test 4},
author= {Test 4}
}

@article{test_5,
title = {Test 5},
author= {Test 5}
}

5 entries are enough to reproduce the problem in my case, but add more as necessary if you need to. Next, create a test.tex file that contains:

\documentclass{report}

\begin{document}

\bibliography{test}
\end{document}

Now, type \cite{ on a new line right after \begin{document} and a panel should pop up that contains the BibTeX entries. In my case, I see:

screenshot

Notice that the entry for test_1 is cropped and cannot be seen using my keyboard's up and down arrow keys. If I use my mouse cursor to use the scroll bar to scroll up, then the latextools package throws an error.

Stack Trace

Uncaught TypeError: Cannot read property 'classList' of null

At /home/edwinksl/.atom/packages/latextools/lib/views/ltselect-list-view.coffee:89

TypeError: Cannot read property 'classList' of null
    at HTMLDocument.callback (/home/edwinksl/.atom/packages/latextools/lib/views/ltselect-list-view.coffee:89:34)

Let me know if I should file this issue at the GitHub repo for the latextools package instead.