Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#9311 closed Bug (fixed)

Vertical scroll bar not appearing in maximized editor with autogtrow enabled

Reported by: tmonahan Owned by:
Priority: Normal Milestone: CKEditor 3.6.5
Component: General Version: 3.6.2
Keywords: IBM Cc: damo, satya

Description

To Reproduce:

  • Open the Autogrow Sample in any browser.
  • Maximize the editor by clicking the Maximize toolbar icon.
  • Enter enough content to cause both vertical and horizontal scrollbars to appear.
  • Click the Maximize toolbar icon to return to normal editing mode.
  • Click the Maximize toolbar once again to maximize the editor.

Problem: The vertical scroll bar does not appear and there is no way to navigate up/down in the editor contents.

This only happens with autogrow enabled. It is caused by an overflow-y:hidden; styling set on the HTML element of the editor iframe which seems to be added in the call to resizeEditor() in autogrow/plugin.js

Attachments (4)

maximize_origContent.jpg (95.5 KB) - added by tmonahan 4 years ago.
Original content created in Maximize mode
maximize_missingScrollbar.jpg (88.3 KB) - added by tmonahan 4 years ago.
Missing Vertical Scrollbar
firstProblem.png (2.8 KB) - added by j.swiderski 4 years ago.
testcontents.txt (995 bytes) - added by j.swiderski 4 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 follow-up: Changed 4 years ago by garry.yao

  • Status changed from new to pending

WFM in IE9/Firefox, would you provide more clue?

comment:2 in reply to: ↑ 1 Changed 4 years ago by tmonahan

Replying to garry.yao:

WFM in IE9/Firefox, would you provide more clue?

Hi Garry, this only happens if you ensure both the horizontal and vertical scroll bars are present in the original content e.g. hit return many times so that a vertical scroll bar is displayed and insert a very wide table to introduce the horizontal scroll bar. I have added 2 screen captures to demonstrate the problem - hopefully they will help you to reproduce this.

We are seeing this as described above in FF. It does also occur in other browsers but an additional step is required. When you have created the content in maximized mode and then minimize the editor, notice how the editor does not grow to fit the contents (I logged ticket #9320 for this). Click in the editor to force autogrow, and then click Maximize. Note that the vertical scroll bar is missing. In fact in Opera, the editor does not return to Maximize mode correctly at all. The editor is mostly displayed off-screen.

Changed 4 years ago by tmonahan

Original content created in Maximize mode

Changed 4 years ago by tmonahan

Missing Vertical Scrollbar

comment:3 Changed 4 years ago by j.swiderski

  • Status changed from pending to confirmed
  • Version changed from 3.6.5 (SVN - trunk) to 3.6.2

Reproducible in all browsers from CKEditor 3.6.2 rev. [7244].

To reproduce:

  1. Open autogrow sample and click maximize
  2. Switch to source and paste contents of txt file (testcontents.txt) and then switch to wysiwyg (scrollbars will be visible)
  3. Click maximize again.
    1. when you switch to source, paste contents, switch to wysiwyg and then press minimize only IE requires extra click to trigger autogrow (covered by #9320).
    2. If you type directly in content area, as described in #9320, Webkit, Opera and IE require extra click.
    3. First tiny problem occurs here (Please see firstProblem.png.) Test content ends with 'zzz'; This 'zzz' is a little bit hidden by horizontal scrollbar
  4. Please notice that after step 3 there is no scrollbar. Now click maximize again.

Result: editor will maximize but scrollbar will not show up.

Last edited 4 years ago by j.swiderski (previous) (diff)

Changed 4 years ago by j.swiderski

Changed 4 years ago by j.swiderski

comment:4 Changed 4 years ago by tmonahan

Is there any update on this ticket? Will a fix for this be included in 3.6.5?

comment:5 Changed 4 years ago by garry.yao

  • Resolution set to fixed
  • Status changed from confirmed to closed

Fixed with [7614].

comment:6 Changed 4 years ago by garry.yao

  • Milestone set to CKEditor 3.6.5
Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy