| Summary: | Display.getBounds not reliable in new Chrome tab | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | John Gymer <jgymer> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 2.3 | ||
| Target Milestone: | 3.0 M6 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
John Gymer
I've tried to reproduce it today without success on both RAP 2.3.1 and 3.0M4. Maybe a timing issue. Hi Ivan, Thanks for trying it out... seems a bit strange though as it is relatively easy to reproduce here. We've tried on 2 different laptops, both with Win7Pro 64-bit (if that makes any difference). As I said, it happens on average 10% of the time, which obviously would make the application 'feel' unreliable, even though once you're into it, it is good. The use-case here is that a customer has their own existing application (different technology) that they want to link into the RAP app via a hyperlink, which launches in another browser tab, so it is quite a reasonable requirement. Is there anything else we can provide that would help you reproduce it? Thanks, John Is this a problem with Chrome 40 only? Did you try any previous Chrome version - 39 for example... or Safari on Mac? The related code is in rwt.html.Window.js#getInnerWidth/Height. By looking into the code it's possible to return 0 in some cases (document.documentElement.(clientWidth) is missing). Maybe this "webkit" switch there is not needed anymore. innerWidth/Height is working for me with Chrome 40. But we have to check with Safari as well. We have an idea to not detect Chrome as "webkit" anymore, but "blink" - see bug 441564. John, could you try to apply the change https://git.eclipse.org/r/#/c/40877/ in RAP 2.3? Does it fix your problem? I'm not building RAP locally from source, so isn't easy for me to apply. The RAP 2.3.1 that I'm using is the one that comes from the Tabris 1.4 nightly. Is there some (simple) way to apply the changes to that? John, change https://git.eclipse.org/r/#/c/40877/ has been merged to master. The easiest way to test it is to get the RWT bundle from git, apply the patch and run your application in development mode by selecting the RAP RWT bundle from your workspace (instead of target). John, I'll mark this bug as fixed. Please reopen if the issue persists with RAP 3.0 M6+. |