Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Local Variables tree broken after resize #33

Open
octachrome opened this issue May 23, 2016 · 3 comments
Open

Local Variables tree broken after resize #33

octachrome opened this issue May 23, 2016 · 3 comments

Comments

@octachrome
Copy link

  • Set a breakpoint, e.g., in a Node script, and run it.
  • When the debugger sidebar opens, resize it so that it is twice as wide as its initial size.
  • In the Local Variables tree, resize the Type column by dragging the column header.

Expected: The Type column resizes normally.
Actual: The size of the Type column jumps around erratically, sometimes disappearing, and is very difficult to resize.

This issue has a high impact on our project, since the names and types of variables are typically longer than the space available to display them, so users are likely to resize the debugger sidebar.

@nightwing
Copy link
Member

This happens due to missing resize call for the datagrid, working on the fix now.

@octachrome
Copy link
Author

@nightwing Is this a simple thing to fix? Can you give me a hint?

@nightwing
Copy link
Member

I think something needs to listen to splitter.resize event similar to https://github.com/c9/core/blob/master/plugins/c9.ide.editors/pane.js#L522-L537 and call resize on datagrids https://github.com/c9/c9.ide.run.debug/blob/master/variables.js#L131 if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants