| Index: chrome/browser/ui/views/find_bar_host.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/find_bar_host.cc (revision 90713)
|
| +++ chrome/browser/ui/views/find_bar_host.cc (working copy)
|
| @@ -125,6 +125,7 @@
|
| SetDialogPosition(new_pos, no_redraw);
|
|
|
| // May need to redraw our frame to accommodate bookmark bar styles.
|
| + view()->Layout(); // Bounds may have changed.
|
| view()->SchedulePaint();
|
| }
|
|
|
| @@ -230,8 +231,7 @@
|
| }
|
|
|
| int FindBarHost::GetWidth() {
|
| - NOTIMPLEMENTED();
|
| - return 0;
|
| + return view()->width();
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -247,6 +247,10 @@
|
| // Ask the view how large an area it needs to draw on.
|
| gfx::Size prefsize = view()->GetPreferredSize();
|
|
|
| + // Limit width to the available area.
|
| + if (widget_bounds.width() < prefsize.width())
|
| + prefsize.set_width(widget_bounds.width());
|
| +
|
| // Place the view in the top right corner of the widget boundaries (top left
|
| // for RTL languages).
|
| gfx::Rect view_location;
|
|
|