[DEV] update context menu
This commit is contained in:
parent
fa0ef8e26c
commit
b45799c532
@ -50,17 +50,20 @@ ewol::widget::ContextMenu::~ContextMenu() {
|
||||
}
|
||||
|
||||
void ewol::widget::ContextMenu::onChangeSize() {
|
||||
markToRedraw();
|
||||
// pop-up fill all the display :
|
||||
ewol::Padding padding = m_shaper->getPadding();
|
||||
EWOL_VERBOSE("our origin=" << m_origin << " size=" << m_size);
|
||||
if (nullptr != m_subWidget) {
|
||||
if (m_subWidget == nullptr) {
|
||||
return;
|
||||
}
|
||||
vec2 subWidgetSize;
|
||||
vec2 subWidgetOrigin;
|
||||
subWidgetSize = m_subWidget->getCalculateMinSize();
|
||||
if (true == m_subWidget->canExpand().x()) {
|
||||
if (m_subWidget->canExpand().x() == true) {
|
||||
subWidgetSize.setX(m_size.x());
|
||||
}
|
||||
if (true == m_subWidget->canExpand().y()) {
|
||||
if (m_subWidget->canExpand().y() == true) {
|
||||
subWidgetSize.setY(m_size.y());
|
||||
}
|
||||
int32_t minWidth = 100;
|
||||
@ -110,8 +113,6 @@ void ewol::widget::ContextMenu::onChangeSize() {
|
||||
m_subWidget->setOrigin(subWidgetOrigin);
|
||||
m_subWidget->setSize(subWidgetSize);
|
||||
m_subWidget->onChangeSize();
|
||||
}
|
||||
markToRedraw();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user