Community
Participate
Working Groups
Created attachment 276468 [details] screenshot When I create long branch names, I sometimes have a very wide context menu afterwards, where the width seems to depend on the length of the branch name (i.e. the longer the branch name, the wider the context menu). See screenshot. That was after creating a branch "bugfix/AAAAA-12345_have_status_bar_for_navigator_content".
Cannot reproduce on Mac. SWT problem?
Might be SWT, and this is on Windows. The calculation might be related to the "Push branch 'branchName'..." menu. That one gets huge when the long branch is the current one, and probably influences the width of the overall menu even afterwards, when it has a new label for the next (shorter) branch. Does anyone know if there is something similar to Composite.layout() for menus, i.e. redoing the size calculation?
Ah, you had the branch with the long name checked out at one point. Possibly even when that screen shot was taken (I notice you had several repositories selected). So two possibly culprits: * bug 315619? * menu size might be calculated before visibility? Which Eclipse version do you see this with? A work-around in Egit might be to abbreviate the branch name, appending an ellipsis if it is longer than some threshold. Like we do in the history view. A tooltip on the menu (should work at least in newer eclipses) could still give the full branch name.
I'm not sure anymore if the branch was checked out at that time, but I definitely know the menu remains that big even after switching to another. Basically the only reset of the menu size happens by restarting Eclipse, once this huge width has occured. So bug 315619 sounds very much the same. Might even be common navigator specific. This is Windows 10, Eclipse 4.10M1.