New issue
Advanced search Search tips

Issue 628543 link

Starred by 4 users

Issue metadata

Status: Archived
Owner: ----
Closed: Feb 2018
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

View.getLocationInWindow() returns an incorrect height value

Reported by krzyszto...@gmail.com, Jul 15 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
Platform: 8530.13.0 (Official Build) dev-channel samus

Steps to reproduce the problem:
1. Add a view to the layout.
2. Get view's location using this code:
int[] location = new int[2];
view.getLocationInWindow(location);

What is the expected behavior?
getLocationInWindow() should return the on-screen position without the top bar.

What went wrong?
getLocationInWindow() returns the on-screen position including the top bar, so the view is shifted down (as an example here: http://imgur.com/wtLFv0e - dialog should be created next to the icon highlighted in blue instead of an icon it is located).

Did this work before? N/A 

Chrome version: 53.0.2785.15  Channel: dev
OS Version: 53.0.2785.15
Flash Version: Shockwave Flash 22.0.0.200-r1
 
Screenshot 2016-07-15 at 11.03.47.png
55.2 KB View Download
Forgot to mention - this is on Chromebook Pixel (2015) using the new Play Store integration.
Occurs on Asus Flip as well.
Components: Platform>ARC
This is for an Android app running under ChromeOS, right...?
Yes, Android app running under Arc++. 

Comment 5 Deleted

Comment 6 by mhant...@gmail.com, Jan 16 2017

Could this be related to the issues 654740  645850   637553  and 634314 -- they all deal with an unexpected offset on rendering and clicks...

Project Member

Comment 7 by sheriffbot@chromium.org, Feb 14 2018

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment