Open GoogleCodeExporter opened 9 years ago
Opened chromium bug:
http://code.google.com/p/chromium/issues/detail?id=114625
Original comment by FlintOBr...@gmail.com
on 16 Feb 2012 at 6:27
Hi Flint - I much prefer your second suggestion (updating the return value of
supportsNonScalingStroke()) than your workaround patch. Do you think you could
tackle that?
Original comment by codedr...@gmail.com
on 16 Feb 2012 at 8:31
I'll work on detecting Chrome windows and returning false for
svgedit.browser.supportsNonScalingStroke().
I didn't see any code detecting the OS, so I'm hesitant to start down that
path. I know how to do it, but I'm assuming there is some collective wisdom in
not doing it. I'm looking for recommendations on how restrictive I should be.
For example, I could detect Webkit and return false or Webkit && Windows.
Remember, Webkit non-scaling-stroke works on OS X (with Chrome).
Original comment by FlintOBr...@gmail.com
on 17 Feb 2012 at 5:21
"collective wisdom"? Probably not. I just don't think it's been required
before.
Original comment by codedr...@gmail.com
on 17 Feb 2012 at 9:38
While the crash can be consistently made, it can also be consistently avoided.
It seems if you try to scale it *after* you mouse-over the element, it works
flawlessly.
I'm out of ideas why, I've tried everything including adding the style from CSS
tab of Chrome's element inspector. It'll still crash if I did not hover the
element first.
So to make supportsNonScalingStroke() return false for this platform is a bit
misleading, unless there is no workaround for this peculiar bug.
Original comment by asyazwan
on 22 Feb 2012 at 11:19
Hi again,
on Windows 7 x64 and latest Chrome, I seem to be able to do this as workaround:
- If Chrome+Windows remove stroke
- Apply CSS
- If Chrome+Windows re-add stroke after some interval
For the last step, I use setTimeout(). It won't work without so I had to
introduce delay. I started with 500ms but the flicker (stroke remove-add) was
too apparent so I kept reducing it... then I found out it works even at 1ms.
Weird.
Is this solution good enough?
Here's the diff to illustrate above steps.
Original comment by asyazwan
on 22 Feb 2012 at 5:02
Attachments:
asyazwan - your solution looks ok to me... Flint?
Two things for this patch:
1) Please move the isChromeWindows() function into browser.js. Possibly split them up into two functions (isChrome and isWindows)
2) Please use the same indentation. If you view the diff on googlecode, it's pretty obvious. We made the (probably) bad choice of using tabs way back and so now we just need to be consistent.
Original comment by codedr...@gmail.com
on 22 Feb 2012 at 5:35
Sorry for the format -- that was just to show my idea.
Here's a patch following your requests.
Original comment by asyazwan
on 23 Feb 2012 at 2:19
Attachments:
Fixed with r2053, thanks asyazwan! Flint, please let me know if this fixes the
problem (if not, I'll reopen the bug).
Original comment by codedr...@gmail.com
on 23 Feb 2012 at 3:12
Scrap that, I totally missed the loop below which does the same bug to all
children, e.g. grouping.
Will need to apply the same fix and test all resize combinations I can think of.
Original comment by asyazwan
on 23 Feb 2012 at 3:31
Original comment by codedr...@gmail.com
on 23 Feb 2012 at 3:55
Here's my latest attempt. Fixed grouping and nested groups resize.
Something interesting to note is that I did the remove-add after vectorEffect =
'non-scaling-stroke' line... it works. This bug continues to baffle me.
Original comment by asyazwan
on 23 Feb 2012 at 3:59
Attachments:
Can you add some TODOs around the code so that when this bug is gone we can
easily undo the workarounds?
Original comment by codedr...@gmail.com
on 23 Feb 2012 at 4:04
Added // TODO: Remove this workaround (all isChromeWindows blocks) once vendor
fixes the issue
Original comment by asyazwan
on 23 Feb 2012 at 4:10
Attachments:
r2054 committed, thanks again! Please tell me when I can close this bug
Original comment by codedr...@gmail.com
on 23 Feb 2012 at 4:15
Just for reference, here is the bug reported by Flint in Chrome project:
https://code.google.com/p/chromium/issues/detail?id=114625
Original comment by asyazwan
on 23 Feb 2012 at 4:16
asyazwan - has this bug been fixed now?
Original comment by codedr...@gmail.com
on 27 Feb 2012 at 11:20
As far as I can tell -- yes. Was waiting for some feedback from Flint.
Marking it fixed...
Original comment by asyazwan
on 27 Feb 2012 at 11:56
The latest trunk works. No crash and the stroke stays the correct size during a
resize drag.
Chrome 17.0.963.56 m on Windows 7.
Thanks!
Original comment by FlintOBr...@gmail.com
on 29 Feb 2012 at 3:16
This bug appears in Chrome Linux 18.0.1025.39 beta 64bit. This may be a Windows
and Linux issue.
Original comment by mcdonald...@gmail.com
on 1 Mar 2012 at 1:06
Checked Chromium on my Arch Linux and yeah it crashed alright.
Patch to remove windows detection attached.
Thanks.
Original comment by asyazwan
on 1 Mar 2012 at 2:07
Attachments:
Can I get some status update on this?
Original comment by asyazwan
on 4 Mar 2012 at 7:40
Marking this fixed as no further feedback was provided, and it is fixed for me,
tested with Chromium 17, Arch Linux x64.
Original comment by asyazwan
on 20 Mar 2012 at 5:41
r2068 incorporate above patch for Linux fix.
Original comment by asyazwan
on 26 Mar 2012 at 7:55
Can anyone confirm that vectorEffect works for upcoming Chrome 19 (if you have
dev installed) without the workaround?
https://code.google.com/p/chromium/issues/detail?id=114625
Original comment by asyazwan
on 30 Mar 2012 at 2:07
This no longer crashes recent versions of Chrome, but it does make the stroke
disappear while you are scaling it. Unfortunately the bug seems to have
propagated to Safari 6 and Mobile Safari on iOS6. Here is a patch to address
all versions of Webkit.
Original comment by duopi...@gmail.com
on 13 Nov 2012 at 10:33
Attachments:
Disregard the patch, I've committed the code since it's pretty straightforward.
Original comment by duopi...@gmail.com
on 13 Nov 2012 at 10:38
Original comment by bret...@gmail.com
on 7 Apr 2014 at 3:38
Original comment by bret...@gmail.com
on 7 Apr 2014 at 3:45
Original issue reported on code.google.com by
FlintOBr...@gmail.com
on 16 Feb 2012 at 5:50Attachments: