Opened 13 years ago

Closed 12 years ago

#6212 closed Bug (fixed)

Chrome resize jumps to top of page

Reported by: Danial Pearce Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.6.2
Component: General Version: 3.4
Keywords: WebKit Cc: Eric K


This bug is reproducible on the stock demo.

If you enter lots of content, and make the editor bigger than your browser, so scroll bars appear on the outer document, then scroll down on your page, when you resize the editor the scroll will jump back to the top. This makes it unusable if your editor is at the bottom of a large document.

This only happens in webkit browsers such as chrome/safari.

If you revert changset:5516 the bug disappears, but I'm sure it was there for a reason, so not sure what bug will reappear?

Attachments (2)

6212.patch (4.2 KB) - added by Garry Yao 12 years ago.
6212_2.patch (938 bytes) - added by Garry Yao 12 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 13 years ago by Tobiasz Cudnik

Resolution: duplicate
Status: newclosed

DUP of #6195.

comment:2 Changed 13 years ago by Danial Pearce

Leave closed if you like, but I believe this bug is completely separate from ticket:6195 as it refers to the elementspath plugin not wrapping correctly.

This bug I have mentioned for above is introduced many times throughout trying to fix together hacks in ticket:5729 and ticket:6195 and is specific to the resizing of the editor.

comment:3 Changed 12 years ago by Eric K

Cc: Eric K added

This is still a problem in 3.4.3 and 3.5, and can still be seen in the demo. Using either Chrome or Safari on Mac or Windows,

  • load in a window short enough to cause the scrollbar to appear
  • scroll to the bottom of the window
  • attempt to resize the editor

and note how the page scrolls up suddenly. In some cases the window will scroll up only slightly; in others it will jump to the top of the page. This does not occur in IE or Gecko-based browsers.

comment:4 Changed 12 years ago by David

If you manually revert changeset:5516 it fixes the problem - and with the latest version of Safari, the following doesn't apply at all:

Resize the width first. WEBKIT BUG: Webkit requires that we put the editor off from display when we resize it. If we don't, the browser crashes!

comment:5 Changed 12 years ago by Wiktor Walc

Keywords: Webkit added; webkit chrome resize removed
Resolution: duplicate
Status: closedreopened

#6195 looks like a separate issue for me. The initial description of that thicket has nothing to do with this one.

Confirmed that it is a regression caused by [5516].

comment:6 Changed 12 years ago by Wiktor Walc

Status: reopenedconfirmed

comment:7 Changed 12 years ago by Eric K

Keywords: resize added
Version: (SVN - trunk)

comment:8 Changed 12 years ago by Wiktor Walc

Keywords: WebKit added; Webkit resize removed
Version: 3.6.2 (SVN - trunk)3.4

@EricFromCanada The version field should be set to the oldest version where issue is reproducible, see TicketSpecs for more details.

Changed 12 years ago by Garry Yao

Attachment: 6212.patch added

comment:9 Changed 12 years ago by Garry Yao

Owner: set to Garry Yao
Status: confirmedreview

comment:10 Changed 12 years ago by Garry Yao

Patch also tries to tackle #3601 while preserving #5729.

comment:11 Changed 12 years ago by Sa'ar Zac Elias

Status: reviewreview_failed

Resizing in Safari scrolls the host page, not to top though, just above the editor.

comment:12 Changed 12 years ago by Garry Yao

Status: review_failedreview

Manual tc added with [7120]. @Saar can't reproduce the issue you mentioned.

Changed 12 years ago by Garry Yao

Attachment: 6212_2.patch added

comment:13 Changed 12 years ago by Garry Yao

#5729 is not anymore reproducible for me after 6212_2, so it looks like the concern in [5516] has expired, see if the reviewer can confirm this too.

comment:14 Changed 12 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.6.2
Status: reviewreview_passed

It seems that we have no crashing issues any more without that code. Cool!

comment:15 Changed 12 years ago by Jakub Ś

This issue may have been duplicated in #8272. I'm not sure here because #8272 still does not work.

comment:16 Changed 12 years ago by Garry Yao

Resolution: fixed
Status: review_passedclosed

Fixed with [7213].

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy