Starting to fix cell selection bug
This commit is contained in:
parent
2b89338e85
commit
1955aace7e
@ -86,8 +86,13 @@ const ExampleComponent = defineComponent({
|
|||||||
colHeaders: colHeaders,
|
colHeaders: colHeaders,
|
||||||
rowHeaders: false,
|
rowHeaders: false,
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
|
width: '100%',
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
|
afterSelection: (row, column, row2, column2, preventScrolling, selectionLayerLevel) => {
|
||||||
|
|
||||||
|
},
|
||||||
afterChange: (changes) => {
|
afterChange: (changes) => {
|
||||||
|
fixSelectionBug();
|
||||||
if (changes != null) {
|
if (changes != null) {
|
||||||
var entry = this.entries[changes[0][0]];
|
var entry = this.entries[changes[0][0]];
|
||||||
entry.date = entry.date.replace(/T.*/, "");
|
entry.date = entry.date.replace(/T.*/, "");
|
||||||
@ -104,8 +109,15 @@ const ExampleComponent = defineComponent({
|
|||||||
this.entries = await appwrite.getEntries();
|
this.entries = await appwrite.getEntries();
|
||||||
this.updateTable();
|
this.updateTable();
|
||||||
this.subscribe();
|
this.subscribe();
|
||||||
|
this.fixSelectionBug();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
fixSelectionBug(){
|
||||||
|
if(this.hotRef){
|
||||||
|
var offset = (self.hotRef.getRowHeight() + 1) * self.entries.length;//document.querySelector(".wtHider").clientHeight;
|
||||||
|
document.querySelector(".htBorders div").style.top = "-" + offset + "px";
|
||||||
|
}
|
||||||
|
},
|
||||||
subscribe(){
|
subscribe(){
|
||||||
console.log("subscribing");
|
console.log("subscribing");
|
||||||
appwrite.subscribe((payload) => {
|
appwrite.subscribe((payload) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user