scissor stack fixes, proper render & event transformations
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
layout::WidgetID,
|
||||
parser::{parse_children, parse_widget_universal, style::parse_style, AttribPair, ParserContext, ParserFile},
|
||||
parser::{AttribPair, ParserContext, ParserFile, parse_children, parse_widget_universal, style::parse_style},
|
||||
widget::div::WidgetDiv,
|
||||
};
|
||||
|
||||
@@ -13,10 +13,10 @@ pub fn parse_widget_div<'a, U1, U2>(
|
||||
) -> anyhow::Result<WidgetID> {
|
||||
let style = parse_style(attribs);
|
||||
|
||||
let (new_id, _) = ctx.layout.add_child(parent_id, WidgetDiv::create(), style)?;
|
||||
let (widget, _) = ctx.layout.add_child(parent_id, WidgetDiv::create(), style)?;
|
||||
|
||||
parse_widget_universal(ctx, new_id, attribs);
|
||||
parse_children(file, ctx, node, new_id)?;
|
||||
parse_widget_universal(ctx, widget.id, attribs);
|
||||
parse_children(file, ctx, node, widget.id)?;
|
||||
|
||||
Ok(new_id)
|
||||
Ok(widget.id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user