Opened 16 years ago
Closed 15 years ago
#3053 closed Bug (fixed)
Safari 4 improperly sets height of editor area
Reported by: | Michael Ney | Owned by: | Alfonso Martínez de Lizarrondo |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.6.5 |
Component: | General | Version: | FCKeditor 2.6.4 |
Keywords: | WebKit Review+ | Cc: |
Description
Tested on Safari 4 Windows and Webkit nightly build Mac. Issue occurs when pasting text or typing text.
To reproduce:
- Open FCKEditor Demo page http://www.fckeditor.net/demo/toolbar?toolbar=Basic
- Type or paste text into editor. Text will be 1 line too short to fill proper box size.
- Resize Safari window. Editor area will suddenly expand to fill entire box.
Note 1: If it does not happen, try shift-reload first. It only happens on the first non-cached load of the page.
Note 2: Some editor layouts have no issues, some editor layouts have significant sizing issues, some over with the editor area 1 inch screen height too small.
See attached file for an extreme case.
Attachments (3)
Change History (10)
Changed 16 years ago by
Attachment: | FCKEditor2.6.4_Safari.png added |
---|
comment:1 Changed 16 years ago by
See this thread for a similar problem with couple of workarounds - it could be useful
comment:2 Changed 16 years ago by
Milestone: | → FCKeditor 2.6.5 |
---|
comment:4 Changed 16 years ago by
Keywords: | WebKit added; safari webkit removed |
---|---|
Owner: | set to Alfonso Martínez de Lizarrondo |
Status: | new → assigned |
The patch basically changes the editor.html to allow the onresize to be called by both Firefox and Safari (note that the !Opera was useless as Gecko is defined as "gecko and !opera and !safari")
The two other changes to use the existence of window.onresize to call it instead of calling it only for gecko, and finally, I had to add a now manual call to window.onresize() in the fitscreen plugin because webkit didn't react to the change of dimensions.
Tested with Safari 4 in Mac and Windows and Chrome 2 in windows (remember to clear the cache on every test as these browsers really love their cache)
umm :-(
not ready for review yet. It doesn't work for example resizing the main window if the editor is maximized. (it sounded strange to me the need to manually call the code in the fitscreen code)
comment:5 Changed 16 years ago by
Keywords: | Review? added |
---|
Ok, this version is ready to be tested by anyone that cares. The problem in the first approach was that e.originalTarget doesn't exist (at least sometimes).
comment:6 Changed 15 years ago by
Keywords: | Review+ added; Review? removed |
---|
Sample screenshot of error in Windows Safari. Editor should be nearly entire height of screenshot.