widget:ticketdata: bug correction for ComboBox
* always use 'TextBlock', since editing is not allowed 'TextBox ' also disturbs correct rendering Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -358,10 +358,10 @@ impl Template for TicketdataView {
|
||||
// create the items builder context (ibc) for the mail to items
|
||||
.items_builder(move |ibc, index| {
|
||||
let text = TicketdataView::mail_to_ref(&ibc.get_widget(id))[index].clone();
|
||||
TextBox::new()
|
||||
TextBlock::new()
|
||||
.name(ID_TICKET_DATA_MAIL_TO)
|
||||
.text(text)
|
||||
.v_align("center")
|
||||
.text(text)
|
||||
.build(ibc)
|
||||
})
|
||||
.selected_index(1)
|
||||
@@ -386,8 +386,8 @@ impl Template for TicketdataView {
|
||||
// create the items builder context (ibc) for the mail cc items
|
||||
.items_builder(move |ibc, index| {
|
||||
let text = TicketdataView::mail_cc_ref(&ibc.get_widget(id))[index].clone();
|
||||
TextBox::new()
|
||||
.name(ID_TICKET_DATA_MAIL_CC)
|
||||
TextBlock::new()
|
||||
//.name(ID_TICKET_DATA_MAIL_CC)
|
||||
.text(text)
|
||||
.v_align("center")
|
||||
.build(ibc)
|
||||
|
||||
Reference in New Issue
Block a user