InsertSingleColumnOperation scrolls editor to the top

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
vitorhugovm
Posts: 31
Joined: Fri Jan 26, 2024 3:31 pm

InsertSingleColumnOperation scrolls editor to the top

Post by vitorhugovm »

I'm having an issue while using the InsertSingleColumnOperation.
Although the caret stays on the right spot at the table, the editor's screen is scrolled to the top when the operation is done. Is this the usual behavior?
How could I avoid this?

Thanks!
Vitor
Radu
Posts: 9256
Joined: Fri Jul 09, 2004 5:18 pm

Re: InsertSingleColumnOperation scrolls editor to the top

Post by Radu »

Hi Vitor,
From what I saw with the default column insertion operation, it inserts a column and then it places the caret in the first cell from that column. So I think this is why the scroll to top, the caret is placed in the first cell from the inserted column.
You mentioned:
Although the caret stays on the right spot at the table
Did you write custom code for this?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
vitorhugovm
Posts: 31
Joined: Fri Jan 26, 2024 3:31 pm

Re: InsertSingleColumnOperation scrolls editor to the top

Post by vitorhugovm »

Hi Radu!
In this case I'm using the original operation, it's not customized. And yes, the caret is set to the first cell of the new column, as should be the expected behavior.
But the problem is not the caret, because when the original operation is done, the editor is scrolled to the beginning of the document, far above the modified table. If I use the arrow keys to move the caret, it comes back to the table, indicating that in fact the caret is on the right spot. But what I wanted is not having the need of locating the table again with the caret move or even scrolling down, I wanted the editor view to not automatically scroll and stay where it was before the action.
Thanks!
Vitor
Radu
Posts: 9256
Joined: Fri Jul 09, 2004 5:18 pm

Re: InsertSingleColumnOperation scrolls editor to the top

Post by Radu »

Hi Vitor,

I tried to reproduce this problem by adding a table at the end of a sample DITA topic we have:

https://www.oxygenxml.com/oxygen-xml-we ... n%22%7D%5D

then adding an extra column in the table, the scroll was to the beginning of the table for me, not to the beginning of the document.
Have you created your own custom framework for editing your own XML vocabulary? What web browser are you using in your tests? I'm using Firefox on a Mac.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
vitorhugovm
Posts: 31
Joined: Fri Jan 26, 2024 3:31 pm

Re: InsertSingleColumnOperation scrolls editor to the top

Post by vitorhugovm »

Hi Radu!
Yes, it is a custom framework for editing a custom XML vocabulary. I'm using Edge on a Windows for the tests. I tested the operation with the link you provided and it worked normally.
Thanks!
Vitor
Post Reply