mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-28 05:54:34 +02:00
vis branch fix
This commit is contained in:
parent
13b616bd04
commit
0c7ff70b14
9 changed files with 501 additions and 21 deletions
|
@ -724,6 +724,10 @@ GitVisuals.prototype.visBranchesFront = function() {
|
|||
vBranch.nonTextToFront();
|
||||
vBranch.textToFront();
|
||||
});
|
||||
|
||||
this.visBranchCollection.each(function(visBranch) {
|
||||
vBranch.textToFrontIfInStack();
|
||||
});
|
||||
};
|
||||
|
||||
GitVisuals.prototype.drawTreeFromReload = function() {
|
||||
|
|
|
@ -273,6 +273,12 @@ var VisBranch = VisBase.extend({
|
|||
this.get('text').toFront();
|
||||
},
|
||||
|
||||
textToFrontIfInStack: function() {
|
||||
if (this.getBranchStackIndex() !== 0) {
|
||||
this.get('text').toFront();
|
||||
}
|
||||
},
|
||||
|
||||
getFill: function() {
|
||||
// in the easy case, just return your own fill if you are:
|
||||
// - the HEAD ref
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue