summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/html_dialog_view.cc
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-09 23:11:17 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-09 23:11:17 +0000
commit450f0dcd806aeb1aea81a64842a0cacef48c572b (patch)
tree7286dbc931adc03275683af33ef36da7478ca9c9 /chrome/browser/views/html_dialog_view.cc
parent68de8b76186059157dc916c499923d46bedb56b1 (diff)
downloadchromium_src-450f0dcd806aeb1aea81a64842a0cacef48c572b.zip
chromium_src-450f0dcd806aeb1aea81a64842a0cacef48c572b.tar.gz
chromium_src-450f0dcd806aeb1aea81a64842a0cacef48c572b.tar.bz2
Fix bug with resizeBy in Gears dialogs.
BUG=1340253 Review URL: http://codereview.chromium.org/1867 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/html_dialog_view.cc')
-rw-r--r--chrome/browser/views/html_dialog_view.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/chrome/browser/views/html_dialog_view.cc b/chrome/browser/views/html_dialog_view.cc
index 6132bc1..6b413d3 100644
--- a/chrome/browser/views/html_dialog_view.cc
+++ b/chrome/browser/views/html_dialog_view.cc
@@ -133,17 +133,7 @@ void HtmlDialogView::CloseContents(TabContents* source) {
void HtmlDialogView::MoveContents(TabContents* source, const gfx::Rect& pos) {
// The contained web page wishes to resize itself. We let it do this because
// if it's a dialog we know about, we trust it not to be mean to the user.
-
- // Determine the size the window containing the dialog at its requested size.
- gfx::Size window_size =
- window()->CalculateWindowSizeForClientSize(pos.size());
-
- // Actually size the window.
- CRect vc_bounds;
- GetViewContainer()->GetBounds(&vc_bounds, true);
- gfx::Rect bounds(vc_bounds.left, vc_bounds.top, window_size.width(),
- window_size.height());
- window()->SetBounds(bounds);
+ window()->SetBounds(pos);
}
bool HtmlDialogView::IsPopup(TabContents* source) {