[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 22:16:03 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
-------------------------------------+-----------------------------

Comment (by azaozz):

 Replying to [comment:4 avryl]:
 > 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.

 That would still miss one of the most common cases when we need to keep
 the panels:
 * User opens a drop-down that exceeds the viewport height.
 * User attempts to scroll the window by moving the vertical scrollbar with
 the mouse.

 > Not sure how this would work on touch devices.

 It won't :)

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

 We should probably do this. We have the viewport height already, getting
 the panel's height would be trivial (will need to loop through all open
 panels).

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


More information about the wp-trac mailing list