scissor stack fixes, proper render & event transformations
This commit is contained in:
@@ -2,9 +2,8 @@ use crate::{
|
||||
i18n::Translation,
|
||||
layout::WidgetID,
|
||||
parser::{
|
||||
parse_children, parse_widget_universal,
|
||||
AttribPair, ParserContext, ParserFile, parse_children, parse_widget_universal,
|
||||
style::{parse_style, parse_text_style},
|
||||
AttribPair, ParserContext, ParserFile,
|
||||
},
|
||||
widget::label::{WidgetLabel, WidgetLabelParams},
|
||||
};
|
||||
@@ -40,12 +39,12 @@ pub fn parse_widget_label<'a, U1, U2>(
|
||||
|
||||
let globals = ctx.layout.state.globals.clone();
|
||||
|
||||
let (new_id, _) = ctx
|
||||
let (widget, _) = ctx
|
||||
.layout
|
||||
.add_child(parent_id, WidgetLabel::create(&mut globals.get(), params), 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