Skip to content

ZEPPELIN-467 Fix ace editor focusing problem in chrome#482

Closed
Leemoonsoo wants to merge 2 commits into
apache:masterfrom
Leemoonsoo:ZEPPELIN-467
Closed

ZEPPELIN-467 Fix ace editor focusing problem in chrome#482
Leemoonsoo wants to merge 2 commits into
apache:masterfrom
Leemoonsoo:ZEPPELIN-467

Conversation

@Leemoonsoo
Copy link
Copy Markdown
Member

This PR addresses https://issues.apache.org/jira/browse/ZEPPELIN-467

When (invisible) textarea position is not correctly placed(this problem occur in Chrome when contents in editor is long), place it in cursor position of ace editor. not always set to 0.

This PR also includes scrolling animation improvement. Make animation faster (duration 200 -> 100ms), and cancel animation before new animation starts.

@Leemoonsoo
Copy link
Copy Markdown
Member Author

Ready to merge

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Leemoonsoo avoid using angular.element('body') multiple times. better to have it in a var and reuse.

@Leemoonsoo
Copy link
Copy Markdown
Member Author

@r-kamath removed repeating code.

@r-kamath
Copy link
Copy Markdown
Member

👍 LGTM. works well on Chrome and Firefox

@Leemoonsoo
Copy link
Copy Markdown
Member Author

Thanks @r-kamath for review.
Merge if there're no more discussions

@asfgit asfgit closed this in 5951e61 Nov 28, 2015
prabhjyotsingh pushed a commit to prabhjyotsingh/zeppelin that referenced this pull request Nov 30, 2015
This PR addresses https://issues.apache.org/jira/browse/ZEPPELIN-467

When (invisible) textarea position is not correctly placed(this problem occur in Chrome when contents in editor is long), place it in cursor position of ace editor. not always set to 0.

This PR also includes scrolling animation improvement. Make animation faster (duration 200 -> 100ms), and cancel animation before new animation starts.

Author: Lee moon soo <moon@apache.org>

Closes apache#482 from Leemoonsoo/ZEPPELIN-467 and squashes the following commits:

434b5b2 [Lee moon soo] Avoid repeating angular.element('body')
04ba168 [Lee moon soo] Fix ace editor focusing problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants