jcouyang / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

DragListGroup, HotFix for bug in chrome #509

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using DragListGroup with RIGHT_2D direction and compiling the code after 
with ADVANCED_OPTIMIZATIONS flag. Before compiling everything works fine. After 
compiling it doesn't work. Problem is reproducable in Chrome 24.0.1297.0 (in 
versions below I experinced the same problem).

I made a very primitive example a also found solution for that (see attached 
file).

Solution is to assign distanceToClosestRow variable to any global variable or 
output it to console, than everything works fine.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Note: we cannot accept patches without the contributor license agreement
being signed. See http://code.google.com/p/closure-
library/wiki/Contributors for more info.

Original issue reported on code.google.com by dmitry.m...@gmail.com on 21 Oct 2012 at 1:11

GoogleCodeExporter commented 9 years ago
I accidentally submitted a form, sorry.

There are two files in archive:
demo-working.htm (which loads (js-min/compiled-not-working.js)
demo-not-working.htm (which loads (js-min/compiled-working.js)

The only difference in them, is that one outputs distanceToClosestRow variable 
to console.

modified draglistgroup.js is also attached (I modified just one line: 1046).

I experienced problem on win7x64, chrome 24.

Hope it helps.

Original comment by dmitry.m...@gmail.com on 21 Oct 2012 at 1:17

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 508 has been merged into this issue.

Original comment by pall...@google.com on 16 Nov 2012 at 9:01