Index: views/examples/combobox_example.h |
diff --git a/views/examples/combobox_example.h b/views/examples/combobox_example.h |
index f65508f0bebddbd37df304296fcc6712fc15b59f..ad5abd11ee1058689673900e35b8357b3f34524d 100644 |
--- a/views/examples/combobox_example.h |
+++ b/views/examples/combobox_example.h |
@@ -9,6 +9,7 @@ |
#include "base/string_util.h" |
#include "views/controls/combobox/combobox.h" |
#include "views/examples/example_base.h" |
+#include "views/fill_layout.h" |
namespace examples { |
@@ -25,8 +26,9 @@ class ComboboxExample : public ExampleBase, public views::Combobox::Listener { |
return L"Combo Box"; |
} |
- virtual views::View* GetExampleView() { |
- return combobox_; |
+ virtual void CreateExampleView(views::View* container) { |
+ container->SetLayoutManager(new views::FillLayout); |
+ container->AddChildView(combobox_); |
} |
private: |
@@ -66,4 +68,3 @@ class ComboboxExample : public ExampleBase, public views::Combobox::Listener { |
#endif // VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_ |
- |