summaryrefslogtreecommitdiffstats
path: root/views/widget
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget')
-rw-r--r--views/widget/widget_gtk.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index 876a130..01b6b87 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -231,7 +231,12 @@ void WidgetGtk::SetBounds(const gfx::Rect& bounds) {
parent_widget->PositionChild(widget_, bounds.x(), bounds.y(),
bounds.width(), bounds.height());
} else {
- NOTIMPLEMENTED();
+ GtkWindow* gtk_window = GTK_WINDOW(widget_);
+ // TODO: this may need to set an initial size if not showing.
+ // TODO: need to constrain based on screen size.
+ gtk_window_resize(gtk_window, bounds.width(), bounds.height());
+
+ gtk_window_move(gtk_window, bounds.x(), bounds.y());
}
}