Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(154)

Issue 6814125: Fix 1px too wide svg issue

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by matthew.scott
Modified:
12 years, 5 months ago
Reviewers:
mp+133989
Visibility:
Public.

Description

Fix 1px too wide svg issue Due to sizes being set with percentages, widths are computed as decimals, but are reported as integers in DOM attributes (Computed width: 1331.949951171875, reported width: 1332) resulting in rounding errors. YUI's getComputedStyle() returns the decimal width, allowing us to round. https://code.launchpad.net/~makyo/juju-gui/svg-width-bug-1076413/+merge/133989 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Fix 1px too wide svg issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/utils.js View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4
matthew.scott
Please take a look.
12 years, 5 months ago (2012-11-12 20:42:37 UTC) #1
frankban
Looks good Matthew, thank you.
12 years, 5 months ago (2012-11-13 10:31:29 UTC) #2
bac
Thanks Matthew. Glad it was such an easy fix.
12 years, 5 months ago (2012-11-13 12:34:23 UTC) #3
matthew.scott
12 years, 5 months ago (2012-11-13 15:35:21 UTC) #4
*** Submitted:

Fix 1px too wide svg issue

Due to sizes being set with percentages, widths are computed as decimals, but
are reported as integers in DOM attributes (Computed width: 1331.949951171875,
reported width: 1332) resulting in rounding errors.  YUI's getComputedStyle()
returns the decimal width, allowing us to round.

R=francesco.banconi, bac
CC=
https://codereview.appspot.com/6814125
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b