lite icon indicating copy to clipboard operation
lite copied to clipboard

resizing the side panel doesn't work

Open nicebyte opened this issue 5 years ago • 6 comments

steps to reproduce: open the editor, hover mouse over the border between main edit area and sidebar, click and drag expected behavior: side panel changes width observed behavior: nothing happens

demonstration: lite-resize

nicebyte avatar May 22 '20 04:05 nicebyte

Seems similar to https://github.com/rxi/lite/issues/23

harikt avatar May 22 '20 05:05 harikt

This is what I did to increase the width

config.treeview_size = 250 * SCALE

I don't think we can resize it as mentioned in issue 23.

harikt avatar May 22 '20 05:05 harikt

in that case can we consider this issue a feature request to implement resizing the sidebar with a mouse? having to modify a config file every time i want to resize the sidebar is not very convenient.

nicebyte avatar May 22 '20 05:05 nicebyte

@nicebyte I agree with you. Because I have also similar issue with the width. But what I try is increasing the width, and use ctrl+\ to hide it.

harikt avatar May 22 '20 15:05 harikt

In treeview.lua:190;

node:split("left", view, false)

false here corresponds to locked, changing it to true will make the side panel/treeview resizeable. However, it will not use the treeview_size directly, but split the root view equally. Might be a good point to start investigating a solution, let me know if you come up with something. :)

andsve avatar May 26 '20 12:05 andsve

As mentioned before this is intended behaviour, that being said supporting this functionality is a valid feature request (thus this issue will remain open). The thing that's preventing this isn't the treeview in general but the UI layout system as a whole -- that is, I'd rather not add a hack to fix this, and instead would prefer changing how the RootView works to better support this. I haven't yet settled on an elegant solution of how this can be resolved.

rxi avatar Jun 04 '20 12:06 rxi