Opened 10 years ago

Last modified 10 years ago

#10392 confirmed Bug

Dropdowns don't scroll to top when opened.

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: UI : Floating Panel Version: 3.0
Keywords: Cc: mike@…


To reproduce:

  1. Open font menu, scroll down half way and then click away (don't select anything) so it closes
  2. Now click the size menu.

Result: It starts scrolled down rather than back at the top.

This is happening because we use 1 float panel for dropdowns and don't reset on every open.
To be honest I have never considered this as a bug. Very common situation is when you try to select something from e.g. styles dropdown and you didn't click what you wanted. If you open dropdown again you will see dropdown in same area where you have finished. You don't have to scroll all the way down what may be frustrating to some (especially when you didn’t click what you wanted for the second time).

Sure when opening new dropdown user would expect it to be at the top. Since we are using one float panel we can either live with it or perhaps remember last dropdown opened and if current dropdown is different scroll it up.

For those who want to have float panel always scrolled up please use below code:

var editor = CKEDITOR.replace( 'editor1', {} );	
editor.on( 'panelShow', function( ev )	{$.contentWindow.scrollTo(0,0);				

Another solution would be adding onOpen methods to below plugins (e.g. after onRender): \ckeditor4-git\plugins\format\plugin.js

onOpen : function(){

Change History (3)

comment:1 Changed 10 years ago by Jakub Ś

Status: newconfirmed
Summary: Dropdowns doesn't scroll to top when opened.Dropdowns don't scroll to top when opened.

comment:2 Changed 10 years ago by Mike Burgh

Cc: mike@… added

comment:3 Changed 10 years ago by Danil

+1 Just wanted to report the same bug.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy