The width of the text element differs in the various crome version
Reported by
deepaapragaasam@gmail.com,
Apr 26 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36 Steps to reproduce the problem: 1.While running the sample in various versions of chrome the textposition is different . I have attached the screenshot of the element position . box layout model What is the expected behavior? Should be same across the various versions What went wrong? The difference causes the difficulty in coding for my application Did this work before? N/A Chrome version: 58.0.3029.81 Channel: stable OS Version: 6.3 Flash Version:
,
Apr 27 2017
Hi , Please find the sample for the issue: http://jsplayground.syncfusion.com/g1r3tf1k I am attaching the output screenshot obtained while running the sample in various versions of the chrome
,
Apr 27 2017
Thank you for providing more feedback. Adding requester "rbasuvula@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 28 2017
,
May 1 2017
Hard coding positions based on assumptions around text metrics is not going to work across platforms, versions, and devices as metrics are dependent on all three. You'll need to measure the text elements (using something like getBoundingClientRect) before positioning it instead of relying on hard-coded values.
,
May 1 2017
I understand that this is annoying but it is the only way to guarantee that it'll work across multiple versions, let along devices and operating systems.
,
May 2 2017
Hi , I would like to clarify that i have used the getBoundingClientRect only in the sample to fetch the bounds . I would like to share the sample http://jsplayground.syncfusion.com/ti2cf4uv In this sample I have used the text inside the svg and across the different version of chrome the getBoundingClientRect value differs. Attaching the screenshot of the version 47 and 58 . Can you kindly look into this and provide a solution for the query. |
||||
►
Sign in to add a comment |
||||
Comment 1 by rbasuvula@chromium.org
, Apr 26 2017Labels: Needs-Feedback