move edit price immediately after edit qty
This commit is contained in:
1 parent
b93f794116
commit
bc8c01a789
1 file changed
+2
-2
@@ -228,11 +228,11 @@ namespace mbts.spark {
|
||||
var price_col = obvm.columns.Where(x => x.id == OrderBookView.Columns.Price.ToString()).FirstOrDefault();
|
||||
var price_index = obvm.columns.indexOf(price_col);
|
||||
if (price_index > -1) {
|
||||
// insert the edit column in the same position that the hidden column occupies
|
||||
var existing_editprice_col = obvm.columns.Where(x => x.id == OrderBookView.Columns.EditablePrice.ToString()).FirstOrDefault();
|
||||
var existing_editprice_index = obvm.columns.indexOf(existing_editprice_col);
|
||||
if (existing_editprice_index == -1) {
|
||||
obvm.columns.Insert(price_index, new OrderBookVM.EditablePriceColumn());
|
||||
// insert the edit price column immediately after the edit qty
|
||||
obvm.columns.Insert(qty_index + 1, new OrderBookVM.EditablePriceColumn());
|
||||
}
|
||||
}
|
||||
obvm.load_from(state);
|
||||
|
||||
Reference in new issue
Block a user