mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-14 23:12:49 +03:00
Fix bad merge. :S
This commit is contained in:
@@ -237,6 +237,28 @@ void UIHTMLWidget::setNeedsOrderSort( bool val ) {
|
||||
mNeedsOrderSort = val;
|
||||
}
|
||||
|
||||
void UIHTMLWidget::updateZIndexSortFlag() {
|
||||
bool needs = false;
|
||||
for ( Node* child = getFirstChild(); child; child = child->getNextNode() ) {
|
||||
if ( child->isType( UI_TYPE_HTML_WIDGET ) &&
|
||||
child->asType<UIHTMLWidget>()->getZIndex() != 0 ) {
|
||||
needs = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
mNeedsZIndexSort = needs;
|
||||
}
|
||||
|
||||
void UIHTMLWidget::onChildCountChange( Node* child, const bool& removed ) {
|
||||
UILayout::onChildCountChange( child, removed );
|
||||
|
||||
if ( !removed )
|
||||
updateZIndexSortFlag();
|
||||
else if ( child->isType( UI_TYPE_HTML_WIDGET ) &&
|
||||
child->asType<UIHTMLWidget>()->getZIndex() != 0 )
|
||||
updateZIndexSortFlag();
|
||||
}
|
||||
|
||||
void UIHTMLWidget::drawChildren() {
|
||||
bool flexSort = false;
|
||||
bool directionReverse = false;
|
||||
|
||||
Reference in New Issue
Block a user