noseglid / atom-build

:hammer: Build your project directly from the Atom editor
https://atom.io/packages/build
MIT License
248 stars 97 forks source link

Latest lines not shown on right layout #468

Open underdpt opened 7 years ago

underdpt commented 7 years ago

Hi, When using right layout, I'm missing the latest 4 lines of the output. In this image, it should output 5 lines from 1 to 5, but only 1 is visible. example

Also note that if I change the layout to top or bottom, and then moves again to right layout, it seems to work correctly.

I'm also missing the right bar and have to use the mouse wheel to move around the output.

Thanks for this great work!

noseglid commented 7 years ago

Definitely a bug with the CSS. The .build .output panel seem to only grow (not shrink). For example; starting with a window size of 600 px, and the output is fine. Increasing the height to 800 px and it's still good (but you have to re-toggle the build window to calculate new heights). Shrinking back to 600 px, and the CSS height remains at 800 px.

I'm not a good CSS ninja. Did some fiddling but didn't get it to work. If anyone with some CSS skills wants to give this a shot, please go ahead.

underdpt commented 7 years ago

In the meantime, what about adding some blank lines at the end of the output for vertical layout? It's not pretty but can make useable the plugin on that configuration.

underdpt commented 7 years ago

Or allowing to scroll past end of buffer...

noseglid commented 7 years ago

Not fond of adding blank lines. Scrolling past end may work. Otherwise, as a workaround, maybe you could use top/bottom orientation until this is fixed?

underdpt commented 7 years ago

Yes, that's what i'm doing now, but I am wasting a lot of vertical space with 16:9 screens :-)