Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-3628] HTML anchor links on paragraph don't work in Google Chrome #3078

Closed
wants to merge 4 commits into from

Conversation

egorklimov
Copy link
Contributor

What is this PR for?

Links like [1] work well in Firefox, but don't work in Chrome.

  1. http://zeppelin/#/notebook/NOTEID?paragraph=PARAGRAPHID

What type of PR is it?

Improvement

What is the Jira issue?

issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-3628

How should this be tested?

  • Manual checking (see screenshot below)

Screenshots (if appropriate)

  • Before

Chrome (v67.0.3396.99):

chrome
Firefox (v61.0.1):

firefox

  • After

Chrome (v67.0.3396.99)

fixed

Questions:

  • Does the licenses files need update?
    Yes, JQuery.scrollTo changed from 1.4.14 to 2.1.2
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@jongyoul
Copy link
Member

jongyoul commented Jul 19, 2018

LGTM. BTW, Is there any way to remove bower dependency? I'd like to move this to a newer package manager.

@egorklimov egorklimov changed the title [ZEPPELIN-3628] HTML anchor links on paragraph don't work in Google Chrome [WIP] [ZEPPELIN-3628] HTML anchor links on paragraph don't work in Google Chrome Jul 19, 2018
@egorklimov
Copy link
Contributor Author

Something went wrong with dependencies: after that update, cursor stopped moving in paragraph text using keyboard arrows.

@egorklimov
Copy link
Contributor Author

@jongyoul I could try to migrate away from bower to npm/yarn

@egorklimov
Copy link
Contributor Author

Seems that in updated scrollTo() it's not allowed to pass undefined .
Also I found one more error that was fixed after update: keyboard arrows scrolling works in Firefox, and doesn't work in Chrome:

  • Before (anchor doesn't work and when cursor reaches end of current viewport page doesn't scroll)
    Chrome (v67.0.3396.99)
    err mp4
  • After
    Chrome (v67.0.3396.99)
    fixed mp4

@egorklimov egorklimov changed the title [WIP] [ZEPPELIN-3628] HTML anchor links on paragraph don't work in Google Chrome [ZEPPELIN-3628] HTML anchor links on paragraph don't work in Google Chrome Jul 20, 2018
@egorklimov
Copy link
Contributor Author

@jongyoul I decided that it would be too hard for me to migrate away from bower to yarn now, maybe I'll try to do this later.

@jongyoul
Copy link
Member

You need to enable travis for testing this PR. Unfortunately, it only supports user id's travis. Can you handle it?

@egorklimov
Copy link
Contributor Author

@jongyoul
CI is green https://travis-ci.org/TinkoffCreditSystems/zeppelin/builds/407589455

@egorklimov egorklimov closed this Jul 24, 2018
@egorklimov egorklimov reopened this Jul 24, 2018
@zjffdu
Copy link
Contributor

zjffdu commented Jul 31, 2018

Will merge if no more comment

@asfgit asfgit closed this in e71fac3 Jul 31, 2018
asfgit pushed a commit that referenced this pull request Jul 31, 2018
…hrome

### What is this PR for?
Links like [1] work well in Firefox, but don't work in Chrome.
1. http://zeppelin/#/notebook/NOTEID?paragraph=PARAGRAPHID

### What type of PR is it?
Improvement

### What is the Jira issue?
issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-3628

### How should this be tested?
* Manual checking (see screenshot below)

### Screenshots (if appropriate)
* #### Before
Chrome (v67.0.3396.99):

![chrome](https://user-images.githubusercontent.com/6136993/42819776-31f951e6-89dd-11e8-9618-710f61ea550f.gif)
Firefox (v61.0.1):

![firefox](https://user-images.githubusercontent.com/6136993/42819794-39c5562c-89dd-11e8-8059-4e8f85855471.gif)
* #### After
Chrome (v67.0.3396.99)

![fixed](https://user-images.githubusercontent.com/6136993/42819862-63095cd6-89dd-11e8-80a0-843e613ca867.gif)

### Questions:
* Does the licenses files need update?
Yes, JQuery.scrollTo changed from 1.4.14 to 2.1.2
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: egorklimov <klim.electronicmail@gmail.com>

Closes #3078 from egorklimov/ZEPPELIN-3628 and squashes the following commits:

3757129 [egorklimov] Cursor in paragraph text fixed
8b521f8 [egorklimov] License github link fixed
e2ead10 [egorklimov] jQuery ScrollTo license updated
87ac4ac [egorklimov] jQuery ScrollTo updated

(cherry picked from commit e71fac3)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
@egorklimov egorklimov deleted the ZEPPELIN-3628 branch July 31, 2018 09:03
mckartha pushed a commit to syntechdev/zeppelin that referenced this pull request Aug 9, 2018
…hrome

### What is this PR for?
Links like [1] work well in Firefox, but don't work in Chrome.
1. http://zeppelin/#/notebook/NOTEID?paragraph=PARAGRAPHID

### What type of PR is it?
Improvement

### What is the Jira issue?
issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-3628

### How should this be tested?
* Manual checking (see screenshot below)

### Screenshots (if appropriate)
* #### Before
Chrome (v67.0.3396.99):

![chrome](https://user-images.githubusercontent.com/6136993/42819776-31f951e6-89dd-11e8-9618-710f61ea550f.gif)
Firefox (v61.0.1):

![firefox](https://user-images.githubusercontent.com/6136993/42819794-39c5562c-89dd-11e8-8059-4e8f85855471.gif)
* #### After
Chrome (v67.0.3396.99)

![fixed](https://user-images.githubusercontent.com/6136993/42819862-63095cd6-89dd-11e8-80a0-843e613ca867.gif)

### Questions:
* Does the licenses files need update?
Yes, JQuery.scrollTo changed from 1.4.14 to 2.1.2
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: egorklimov <klim.electronicmail@gmail.com>

Closes apache#3078 from egorklimov/ZEPPELIN-3628 and squashes the following commits:

3757129 [egorklimov] Cursor in paragraph text fixed
8b521f8 [egorklimov] License github link fixed
e2ead10 [egorklimov] jQuery ScrollTo license updated
87ac4ac [egorklimov] jQuery ScrollTo updated
mckartha pushed a commit to syntechdev/zeppelin that referenced this pull request Aug 9, 2018
…hrome

### What is this PR for?
Links like [1] work well in Firefox, but don't work in Chrome.
1. http://zeppelin/#/notebook/NOTEID?paragraph=PARAGRAPHID

### What type of PR is it?
Improvement

### What is the Jira issue?
issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-3628

### How should this be tested?
* Manual checking (see screenshot below)

### Screenshots (if appropriate)
* #### Before
Chrome (v67.0.3396.99):

![chrome](https://user-images.githubusercontent.com/6136993/42819776-31f951e6-89dd-11e8-9618-710f61ea550f.gif)
Firefox (v61.0.1):

![firefox](https://user-images.githubusercontent.com/6136993/42819794-39c5562c-89dd-11e8-8059-4e8f85855471.gif)
* #### After
Chrome (v67.0.3396.99)

![fixed](https://user-images.githubusercontent.com/6136993/42819862-63095cd6-89dd-11e8-80a0-843e613ca867.gif)

### Questions:
* Does the licenses files need update?
Yes, JQuery.scrollTo changed from 1.4.14 to 2.1.2
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: egorklimov <klim.electronicmail@gmail.com>

Closes apache#3078 from egorklimov/ZEPPELIN-3628 and squashes the following commits:

3757129 [egorklimov] Cursor in paragraph text fixed
8b521f8 [egorklimov] License github link fixed
e2ead10 [egorklimov] jQuery ScrollTo license updated
87ac4ac [egorklimov] jQuery ScrollTo updated

(cherry picked from commit e71fac3)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
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.

3 participants