fixed menubar width issue
the width of menubar is not changed when its parent window is resized
This commit is contained in:
@@ -102,12 +102,15 @@ namespace nana
|
||||
: public widget_object<category::widget_tag, drawerbase::menubar::trigger>
|
||||
{
|
||||
public:
|
||||
menubar(); ///< The default constructor delay creation.
|
||||
menubar() = default; ///< The default constructor delay creation.
|
||||
menubar(window); ///< Create a menubar at the top of the specified window.
|
||||
~menubar();
|
||||
void create(window); ///< Create a menubar at the top of the specified window.
|
||||
menu& push_back(const nana::string&); ///< Appends a new (empty) menu.
|
||||
menu& at(size_t index) const; ///< Gets the menu specified by index.
|
||||
std::size_t length() const; ///< Number of menus.
|
||||
private:
|
||||
::nana::event_handle evt_resized_{nullptr};
|
||||
};//end class menubar
|
||||
}//end namespace nana
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user