Page 1 of 1

AceEditor - focus jumps around [SOLVED]

Posted: Mon Mar 24, 2014 10:49 am
by wmdvanzyl
I've noticed from the latest update (might be one back also) that when i click in the text area when using AceEditor that the focus jumps. With other words, the cursor is not where i click. Mostly it results in a selection from where i clicked right to the top. It's just an annoyance and i was wondering if it only happens to me? If i can get some confirmation i can file a bug report.

This 1.11.10

Re: AceEditor - focus jumps around

Posted: Mon Mar 24, 2014 10:58 am
by 10010110
I can confirm this. And it annoys me, too.

Re: AceEditor - focus jumps around

Posted: Mon Mar 24, 2014 5:13 pm
by Stikki
Disable: Auto (Editor starts with preset height and will auto expand based on content)

And it wont jump anymore

Re: AceEditor - focus jumps around

Posted: Tue Mar 25, 2014 7:38 am
by wmdvanzyl
So do you think the "jump" behaviour is as it should be or would you consider it a bug? I would expect the resizing to occur at page load and not at focus.

Re: AceEditor - focus jumps around [SOLVED]

Posted: Tue Mar 25, 2014 7:50 am
by uniqu3
If you have a stable working solution feel free to propose it and create a diff, else it is not considered as bug because only way i was able to figure out length of content from hidden textarea which is actually real content and calculate it so it is rendered properly in AceEditor which is rendered by Ace Syntaxhighlighter engine was on focus of editor.

Re: AceEditor - focus jumps around [SOLVED]

Posted: Wed Mar 26, 2014 5:49 am
by wmdvanzyl
Thanks for the feedback Goran.

Hehe... no i have no solution ;D

Thanks for the great module. I didn't mean to criticize - i was just wondering if the behaviour is as it should be.