Chrome not properly rendering HeaderPanel as of yesterday's update?

62 views
Skip to first unread message

Eric Andresen

unread,
Mar 8, 2012, 3:53:30 PM3/8/12
to google-we...@googlegroups.com
My application has a HeaderPanel that has suddenly stopped working in Chrome (32-bit XP version 19.0.1061.1).  The GWT code hasn't changed, and IE8 and FireFox both still work.

The symptom is that the header and footer appear properly, but the content has its height set to 0px so it doesn't show up.  Sometimes if I wait or inspect the element it will appear, sometimes it never appears.  This problem just appeared yesterday, on three separate people's PCs. 

Has anyone else seen any issues with HeaderPanel rendering in the last couple days?

Eric Andresen

unread,
Mar 13, 2012, 12:42:24 PM3/13/12
to google-we...@googlegroups.com
I've isolated this issue down to the Chrome Dev-channel and Canary-channel.  The Stable and Beta channels work fine.  The issue is reproduceable in both 64-bit Win7 and 32-bit XP.  I guess I'll take the issue over to the Chrome forums since it looks like their problem.  

  When I see this issue, in the debugger what happens is inside HeaderPanel:

private void forceLayout() {
    // No sense in doing layout if we aren't attached or have no content.
    if (!isAttached() || content == null) {
      return;
    }

    // Resize the content area to fit between the header and footer.
    int remainingHeight = getElement().getClientHeight();
    if (header != null) {
      int height = Math.max(0, headerContainer.getOffsetHeight());
      remainingHeight -= height;

The call to getClientHeight() is returning 0 in Chrome, but the proper value in all other browsers.  

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages