Issue Bug Closed

#82780RTE CKeditor top-positioning for maximize and combopanels is broken in browsers with webkit

Arne Bracht 10/17/17, 00:21 updated 10/02/18, 10:55

Description

Fullscreen mode works not correct after scrolling down an then press the button to maximize. It calculate the css class “cke_maximized” to negativ values for “top”.

Affected is Chrome version Version 61.0.3163.100 (Offizieller Build) (32-Bit), tried also 64 bit with the same result.
Firefox is everything ok.

The problem is in \typo3\sysext\rte_ckeditor\Resources\Public\JavaScript\Contrib\ckeditor.js

It calculate the css class “cke_maximized” to negativ values for “top”.

Test sets cke_maximized {top: 0px;}, but right click menus are now on false positions:

> – y.addClass(“cke_maximized”);f();w=y.getDocumentPosition();y.setStyles({left:-1*w.x+“px”,top:-1*w.y+“px”});
> + y.addClass(“cke_maximized”);f();w=y.getDocumentPosition();y.setStyles({left:-1*w.x+“px”,top:“0px”});

Shows what i mean:
https://typo3.slack.com/files/U5STQ9VN2/F7HSA10U8/f__rderschule_landau__typo3_cms_8.7.8__-_google_chrome_15.10.2017_15_13_41.mp4

Reviews 4