﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10392	Dropdowns don't scroll to top when opened.	Jakub Ś		"**To reproduce:**[[BR]]
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.[[BR]]
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 )	{				
	ev.data._.iframe.$.contentWindow.scrollTo(0,0);				
});
}}}
Another solution would be adding onOpen methods to below plugins (e.g. after onRender):
\ckeditor4-git\plugins\format\plugin.js [[BR]]
\ckeditor4-git\plugins\font\plugin.js [[BR]]
\ckeditor4-git\plugins\stylescombo\plugin.js [[BR]]

{{{
onOpen : function(){
this._.panel._.iframe.$.contentWindow.scrollTo(0,0);
},
}}}
"	Bug	confirmed	Normal		UI : Floating Panel	3.0			mike@…
