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