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
|
// create the items builder context (ibc) for the mail to items
|
||||||
.items_builder(move |ibc, index| {
|
.items_builder(move |ibc, index| {
|
||||||
let text = TicketdataView::mail_to_ref(&ibc.get_widget(id))[index].clone();
|
let text = TicketdataView::mail_to_ref(&ibc.get_widget(id))[index].clone();
|
||||||
TextBox::new()
|
TextBlock::new()
|
||||||
.name(ID_TICKET_DATA_MAIL_TO)
|
.name(ID_TICKET_DATA_MAIL_TO)
|
||||||
.text(text)
|
|
||||||
.v_align("center")
|
.v_align("center")
|
||||||
|
.text(text)
|
||||||
.build(ibc)
|
.build(ibc)
|
||||||
})
|
})
|
||||||
.selected_index(1)
|
.selected_index(1)
|
||||||
@@ -386,8 +386,8 @@ impl Template for TicketdataView {
|
|||||||
// create the items builder context (ibc) for the mail cc items
|
// create the items builder context (ibc) for the mail cc items
|
||||||
.items_builder(move |ibc, index| {
|
.items_builder(move |ibc, index| {
|
||||||
let text = TicketdataView::mail_cc_ref(&ibc.get_widget(id))[index].clone();
|
let text = TicketdataView::mail_cc_ref(&ibc.get_widget(id))[index].clone();
|
||||||
TextBox::new()
|
TextBlock::new()
|
||||||
.name(ID_TICKET_DATA_MAIL_CC)
|
//.name(ID_TICKET_DATA_MAIL_CC)
|
||||||
.text(text)
|
.text(text)
|
||||||
.v_align("center")
|
.v_align("center")
|
||||||
.build(ibc)
|
.build(ibc)
|
||||||
|
|||||||
Reference in New Issue
Block a user