Better and faster way to change tree row height?


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;


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
  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?