[wp-trac] [WordPress Trac] #29516: Tinymce-floatpanels can be in odd positions if editor is scrolled.

WordPress Trac noreply at wordpress.org
Fri Sep 5 00:13:15 UTC 2014


#29516: Tinymce-floatpanels can be in odd positions if editor is scrolled.
-------------------------------------+-----------------------------
 Reporter:  programmin               |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.0.1
Component:  TinyMCE                  |     Version:  4.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  ui, javascript
-------------------------------------+-----------------------------
Changes (by avryl):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 Not sure how to fix this... Either the panels need to be made responsive
 by TinyMCE (have a scrollbar for the panel if it doesn't fit) and then
 hide the panels on window scroll. The problem then is that it would hide
 once you hit the end of the panel... That could be "fixed" by checking
 whether or not the mouse is above the panel, but that's not ideal since
 the mouse could at the edge.

 Another approach that would make it a bit better is to just check if the
 mouse is above the panel without the second scroll. So, hide all the
 panels on scroll, except when the mouse is above it.

 Not sure how this would work on touch devices. It's disabled on mobile,
 but there are other devices that have a touch screen.

 A third approach is to check if the visible panel overflows the window...

 In any case, I don't see why we shouldn't hide the tooltips.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29516#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list