stash-commit-graph-plugin icon indicating copy to clipboard operation
stash-commit-graph-plugin copied to clipboard

Display issue - huge grey box on Commit Graph

Open diligent176 opened this issue 11 years ago • 24 comments

Screen shot provided. This is a fairly new repo with a few branches and merges. This seems to be one of the labels, the huge size of it is pushing other elements to the right.

stashgraph

diligent176 avatar May 13 '15 17:05 diligent176

I've got the same problem. On Stash 3.9.2. There are several of those grey boxes overlapping.

Refalm avatar Jun 08 '15 14:06 Refalm

I've got the same issue. After a particular commit this gray box occured and disrupts the layout.

Chrome inspect element: <rect x="-741.3020833333334" y="536.5" width="1691.1354166666667" height="2086" r="0" rx="0" ry="0" fill="#333333" stroke="none" fill-opacity="0.8" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect>

Parent: <div class="graph-segment"><svg>(...)</svg></div>

mbryla avatar Jun 24 '15 10:06 mbryla

Just want to report we got the same problem too, but in a bigger scale. We now see several of these boxes on top of each other. Stash 3.5.1 + Commit Graph 1.1

2015-06-25_10-18-26

svennws avatar Jun 25 '15 08:06 svennws

Same here w/ Stash 3.10.2 and Commit Graph 1.1

Nonymus avatar Jun 30 '15 09:06 Nonymus

I have the same issue, Stash 3.10.2 and Commit Graph 1.1. In IE11 as well as Firefox 39.0 knipsel

geerligs avatar Jul 15 '15 14:07 geerligs

I apologize for my delay on this. To let everyone know, i'm incredibly busy with work at the moment and am not able to contribute time to this. If my situation changes i'll update here, but if anyone has the time/determination to fix this I would be more than happy to review and merge PRs.

cha55son avatar Aug 10 '15 17:08 cha55son

Same problem running Bitbucket v4.0.1 / Commit Graph v2.0

VaughnW avatar Oct 12 '15 13:10 VaughnW

hi, i have investigated this problem and found a potential fix for it. in jquery.commitgraph.js (line 152) for unknown reason labels.getBBox() is returned with wrong values. after analyzing the values for other lables it showed that only 2 parameters are changing values and that value is already known (startX) so i just hardcoded those values like this: textBBox.height=14; textBBox.x=0; textBBox.y=-7; textBBox.x2=startX; textBBox.y2=7; textBBox.width=startX;

and the big grey boxes vanished. of course it may cause some other issues that the time will reveal.

ghost avatar Jan 15 '16 13:01 ghost

Having that same issue after upgrading from stash 3.6.1 to bitbucket 4.3.0

gilShin avatar Jan 26 '16 14:01 gilShin

@darkdams: Created a test plugin with your textBBox fix. The big grey boxes are away and the history looks really good. Thank you!

tirolerstefan avatar Jan 28 '16 05:01 tirolerstefan

I was wondering whether it is possible to release this plugin on the marketplace (or somewhere else)?

geerligs avatar Jan 28 '16 07:01 geerligs

You can give this a try (pre-release! not officially reviewed, yet!): https://github.com/tirolerstefan/stash-commit-graph-plugin/releases/tag/v2.1

tirolerstefan avatar Jan 28 '16 07:01 tirolerstefan

Installed pre release 2.1, the big gray boxes are gone! But the commit graph is still shifted to the right.

screenshot1 screenshot2 screenshot3

marcelleke avatar Jan 28 '16 12:01 marcelleke

i did not told that my solution is resolving fully the issue. but it's more of a work around to not have to many big grey box. it is not perfect solution and still the big grey box may come back! got such case few days ago

ghost avatar Jan 29 '16 08:01 ghost

a. I wrote in a different issue that adding core CPUs and RAM memory to the machine fixed the issue of the shifting. b. When will this 2.1 be released?

gilShin avatar Feb 02 '16 11:02 gilShin

Well, I'm not the maintainer, so I cannot release anything here (and I really hope I didn't offend or displease anyone with this pre-release on my own). First I think, Chason has to find some time to review the Pull Request - maybe the whole "fix" has to be reworked...

tirolerstefan avatar Feb 02 '16 11:02 tirolerstefan

@tirolerstefan

I wasn't refering to you in particular. I'm not familiar with the plugin developers.

Thanks anyway.

gilShin avatar Feb 02 '16 12:02 gilShin

Hey there! Sorry for the delay, I may be able to review this PR tonight or sometime this week. Also I've seen people reporting this issue but I could never recreate it myself. Does anyone have a small repo (that you don't mind sharing) that exhibits the issue?

cha55son avatar Feb 02 '16 14:02 cha55son

My customer is HP. They'll never let me send you their repo :-) Anyhow, it is not 100 percent sure that with the same repo, you'll be able to reproduce it on your side. At least for me it is not urgent at all. My customer lives with that bug for now. I'll keep on tracking this thread.

Thanks

gilShin avatar Feb 02 '16 14:02 gilShin

I created a test repository where I experience this problem. See attached file. Sorry for renaming it, but Github didn't accept my zip archive.

testrepo_rename_extension_to_tar_gz

tirolerstefan avatar Feb 02 '16 14:02 tirolerstefan