checkEditorSection

Tags: #<Tag:0x00007efc645ac050>

I implemented some custom editors (following the docs at [1]), but for some reason checkEditorSection always returns an empty value.

Shouldn’t it return where the current editing position so we can adjust the custom editor position, using the css transform offsets?

Right now, editing a cell near the bottom/right edges will clip the editor.

[1] https://handsontable.com/docs/8.0.0/tutorial-cell-editor.html#-selecteditor-creating-editor-from-scratch

Hi @pedro1

Can you share a demo with your recent progress for me to test?

Hello Aleksandra,

Sure, I have compiled here the important bits:

https://jsfiddle.net/8k0rdhf3/

Thanks for the help

Thank you for sharing the demo. Our Support Engineer will investigate this subject and I should get his reply on Monday/ Tuesday

Hi @pedro1

I’m back with an update from our developer. Here is his feedback.

This code snippet const editorSection = this.checkEditorSection (); is used in the selectEditor to define the overlay that the editor should be displayed on, that follows top, left, bottom, top-left-corner or bottom-left-corner. This is why we need to set the correct z-index .

Let me share an example that explain how it works. If the Client use fixedColumnsLeft: 1, they would receive left and if they are not using the Fixing feature they are left with an empty string.

Here is an updated demo - https://jsfiddle.net/s9bmx2ev/

Let me know if that information helped and feel free to ask additional questions if needed.