Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/nanogui/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class NANOGUI_EXPORT Widget : public Object {
/// Return the size of the widget
const Vector2i &size() const { return m_size; }
/// set the size of the widget
void set_size(const Vector2i &size) { m_size = size; }
virtual void set_size(const Vector2i &size) { m_size = size; }

/// Return the width of the widget
int width() const { return m_size.x(); }
Expand Down