debugger icon indicating copy to clipboard operation
debugger copied to clipboard

File tabs disappear when readjusting window size

Open Doomwyte opened this issue 8 years ago • 6 comments

Repro steps:

  1. Have multiple files open (I have 5 files open originally)
  2. Adjust the window size of the center panel Observe that apstag.js and showad.js disappear from view when the window is too small. They are not present in the drop-down either.

sep-23-2018 10-57-57

Doomwyte avatar Sep 23 '18 15:09 Doomwyte

/claim

Doomwyte avatar Sep 23 '18 15:09 Doomwyte

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Sep 23 '18 15:09 claim

@Doomwyte have you been able to resolve this issue?

jacobjzhang avatar Oct 24 '18 13:10 jacobjzhang

@jacobjzhang Nope not yet :P

Doomwyte avatar Oct 24 '18 20:10 Doomwyte

Still working on this issue, but one thing I notice is that resizing the size of the browser window doesn't have this issue. This issue only happens when I resize the center panel window.

Also, if I have an active tab that gets thrown into the dropdown, when resizing the browser window another tab gets chosen as the active tab. When resizing the center panel window, there is no new tab chosen as the active tab.

Doomwyte avatar Nov 08 '18 06:11 Doomwyte

I think the issue is that updateHiddenTabs() in Tabs.js doesn't get called when the centre panel is resized. I notice it gets called when the browser window is resized with the following code below in Tabs.js, which allows the hidden tabs to be adjusted correctly. Trying to find a way to get the method to be called when the centre panel is resized...

this.onResize = debounce(() => {
    this.updateHiddenTabs();
});

Doomwyte avatar Nov 12 '18 01:11 Doomwyte