menu: fix position / size
This commit is contained in:
committed by
Raphael Coeffic
parent
bd7e893a0b
commit
07e4f494b1
+8
@@ -253,6 +253,14 @@ Menu::Menu(Window * parent, bool multiple):
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Menu::setToolbar(Window * window)
|
||||||
|
{
|
||||||
|
toolbar = window;
|
||||||
|
toolbar->setLeft(content->left() - toolbar->width());
|
||||||
|
toolbar->setTop(content->top());
|
||||||
|
toolbar->setHeight(content->height());
|
||||||
|
}
|
||||||
|
|
||||||
void Menu::updatePosition()
|
void Menu::updatePosition()
|
||||||
{
|
{
|
||||||
coord_t height = content->body.getContentHeight();
|
coord_t height = content->body.getContentHeight();
|
||||||
|
|||||||
+1
-7
@@ -186,13 +186,7 @@ class Menu: public ModalWindow
|
|||||||
content->body.setFocus(flag);
|
content->body.setFocus(flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setToolbar(Window * window)
|
void setToolbar(Window * window);
|
||||||
{
|
|
||||||
toolbar = window;
|
|
||||||
content->setLeft(toolbar->right());
|
|
||||||
content->setTop(toolbar->top());
|
|
||||||
content->setHeight(toolbar->height());
|
|
||||||
}
|
|
||||||
|
|
||||||
void setTitle(std::string text);
|
void setTitle(std::string text);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user