Ticket #2127 (closed New Feature: fixed)
Disable scrollbar of editor parent while dialog is active
| Reported by: | MarkWB | Owned by: | martinkou |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6.2 |
| Component: | General | Version: | SVN |
| Keywords: | Confirmed Review+ | Cc: |
Description
It would be nice to have again what effectively was a feature before 2.6. In other words, it would be nicer if somehow the vertical scroll bar of the main browser window could be disabled while a dialog is active. This is because the mouse wheel can now scroll away the whole dialog (and editor window) after a scroll bar within a dialog reaches its limit and the parent page containing the editor instance is taller than the browser window. (a little bit annoying) This of course couldn't happen from a popup.
The following:
window.document.body.style.overflow='hidden';
could work for IE, but unfortunately not FF. FF scrolls to the top before disabling the scroll bar. I'm hoping you can think of a more elegant solution.