Several fixes for UIViewPager.

Added min-width and max-width CSS properties (still needs testing).
Fixed CSS animations with multiple steps.
Fixed menu sub-menues not appearing.
This commit is contained in:
Martín Lucas Golini
2020-02-28 04:40:32 -03:00
parent 8c108c5ed9
commit cd34f7f4e4
19 changed files with 239 additions and 53 deletions

View File

@@ -36,7 +36,9 @@ void UIRelativeLayout::onParentSizeChange( const Vector2f& ) {
}
void UIRelativeLayout::fixChilds() {
setInternalPosition( Vector2f( mLayoutMargin.Left, mLayoutMargin.Top ) );
if ( getParent()->isUINode() && !getParent()->asType<UINode>()->ownsChildPosition() ) {
setInternalPosition( Vector2f( mLayoutMargin.Left, mLayoutMargin.Top ) );
}
if ( getLayoutWidthRule() == LayoutSizeRule::MatchParent ) {
Rectf padding = Rectf();