Revert "Avoid higlighting additional rows/cols"
This reverts commit a701f7c9094227422457d05cc5d90e9d1a9a7fc0. I approved this one but it doesn't seem to work well, unfortunately. Signed-off-by: Gökay Şatır <gokay.satir@collabora.com> Change-Id: Iafc10a15dcf07aae661e7dd2562c6555f6b83596
This commit is contained in:
parent
d7c985e9b5
commit
34b6f0d760
1 changed files with 3 additions and 3 deletions
|
@ -604,7 +604,7 @@ L.Control.Header.HeaderInfo = L.Class.extend({
|
|||
pos: data.startpos + data.size, // end position on the header canvas
|
||||
size: data.size,
|
||||
origsize: data.size,
|
||||
isHighlighted: that.isHeaderEntryHighLighted(cellSelections, data.startpos - startPx + data.size * 0.5),
|
||||
isHighlighted: that.isHeaderEntryHighLighted(cellSelections, data.startpos + data.size * 0.5),
|
||||
isCurrent: idx === currentIndex ? true: false
|
||||
};
|
||||
}.bind(this)
|
||||
|
@ -630,7 +630,7 @@ L.Control.Header.HeaderInfo = L.Class.extend({
|
|||
pos: firstFreeEnd, // end position on the header canvas
|
||||
size: firstFreeSize,
|
||||
origsize: dataFirstFree.size,
|
||||
isHighlighted: that.isHeaderEntryHighLighted(cellSelections, dataFirstFree.startpos - startPx + dataFirstFree.size * 0.5),
|
||||
isHighlighted: that.isHeaderEntryHighLighted(cellSelections, dataFirstFree.startpos + dataFirstFree.size * 0.5),
|
||||
isCurrent: startIdx === currentIndex ? true: false
|
||||
};
|
||||
|
||||
|
@ -641,7 +641,7 @@ L.Control.Header.HeaderInfo = L.Class.extend({
|
|||
pos: data.startpos - startPx + data.size, // end position on the header canvas
|
||||
size: data.size,
|
||||
origsize: data.size,
|
||||
isHighlighted: that.isHeaderEntryHighLighted(cellSelections, data.startpos - startPx + data.size * 0.5),
|
||||
isHighlighted: that.isHeaderEntryHighLighted(cellSelections, data.startpos + data.size * 0.5),
|
||||
isCurrent: idx === currentIndex ? true: false
|
||||
};
|
||||
}.bind(this));
|
||||
|
|
Loading…
Reference in a new issue