Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Issue 246012: Fix a bug where we get an extra resize event for background tabs. (Closed)

Created:
11 years, 3 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix a bug where we get an extra resize event for background tabs. The TabContentsContainerGtk is a GtkFixed that contains a TabContentsViewGtk for each tab. We hide the background TCVG and only show the foreground TCVG. However, when the TCCG gets a resize event, we were still sending a set_size_request to all the background tabs. Since they were hidden, nothing happened except in the case described in issue 14114. It seems like this is a spurious resize by gtk, but not sending the resize request seems to work around it. BUG=14114 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27297

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M chrome/browser/gtk/tab_contents_container_gtk.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
tony
11 years, 3 months ago (2009-09-25 23:32:17 UTC) #1
Evan Stade
lgtm, but how does it get the correct size when it finally does show?
11 years, 3 months ago (2009-09-25 23:34:39 UTC) #2
tony
11 years, 3 months ago (2009-09-25 23:41:51 UTC) #3
On 2009/09/25 23:34:39, Evan Stade wrote:
> lgtm, but how does it get the correct size when it finally does show?

I imagine gtk always does a size allocate when you show a widget.  Wouldn't it
have to?

Powered by Google App Engine
This is Rietveld 408576698