Closed (fixed)
Project:
Form Builder
Version:
6.x-1.x-dev
Component:
Form Builder Core
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2012 at 03:40 UTC
Updated:
22 Mar 2012 at 04:00 UTC
While testing the D6 version in Google Chrome, I found that after every drag, the page scrolls to the top. Very annoying. However I couldn't find a problem with the code, it seems to be triggered by these lines:
// Scroll the palette into view.
$(window).scroll();
There are two places where this code is called (after dropping a field and after stopping any drag).
This problem only appears in Chrome but in both versions of Form Builder. Looks like there is a bug in Chrome that causes this behavior:
http://code.google.com/p/chromium/issues/detail?id=113962
Not sure if we should work around it for now or wait for Chrome to fix it.
Comments
Comment #1
quicksketchThis patch solves the problem by using jQuery's triggerHandler event, which just calls jQuery handlers but not the native browser implementation. Since calling window.scroll() with no parameters isn't proper JS anyway, this definitely seems like a good fix to have in place. Committed to both branches.