vis branch fix

This commit is contained in:
Peter Cottle 2013-01-09 01:33:50 -08:00
parent 13b616bd04
commit 0c7ff70b14
9 changed files with 501 additions and 21 deletions

View file

@ -724,6 +724,10 @@ GitVisuals.prototype.visBranchesFront = function() {
vBranch.nonTextToFront();
vBranch.textToFront();
});
this.visBranchCollection.each(function(visBranch) {
vBranch.textToFrontIfInStack();
});
};
GitVisuals.prototype.drawTreeFromReload = function() {

View file

@ -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