Better and faster way to change tree row height?


#1

I have increased tree row font size through some CSS applied to tree.container. meanwhile I want to increase row height for things to fit better.

after searching through the code, I found:

fsCache.model.rowHeightInner = height;
fsCache.model.rowHeight = height;

per https://github.com/c9/core/blob/master/plugins/c9.ide.tree/tree.js#L216

so just to test, I added these lines to my plugin’s code, replacing height with the value that I want, and it seems to work except for two takes:

  1. there’s latency before the heights change (because of the latency consideration per https://cloud9-sdk.readme.io/docs/the-filesystem-api?).
  2. file and folder names are not correctly aligned vertically with the icons before them (need CSS?)

so my questions are:

  1. is there better and faster way to change the height of tree rows?
  2. is there a way for my plugin to apply some CSS directly to the rows?