File names disappear in tabs after minimize/maximize
ovk opened this issue · comments
I can't reproduce this on my PC (you might have issues with another installed extensions).
I had this issue after updating to the latest version of the Brackets.
My simple solution is, edit the main.css file located in the styles folder.
.ext-documents .document-name{
...
...
min-width: 5em; /* add this script.*/
}
Everything goes back to normal and I can continue to use this great extension.
Thanks, @ThemeOn. This prevents tabs from collapsing completely, so it is great as a temporary solution.
Great! Will some of you want to create Pull Request with the fix ?
@dnbard, the fix suggested by @ThemeOn is just a workaround. It prevents tabs from complete collapse to zero-width, but it doesn't fixes the root-cause.
It seems like the problem is in this line in tabService.js
:
$doc.width(width * (1 - (1 - ratio) / documentsNameWidth * docHolderWidth));
When the ratio
is negative, the tab width becomes a negative causing tab to collapse.
I have created a pull request with the code which fixes this issue for me, so you can check it and merge.
Verified in 0.5.3