Display bugfixes

This commit is contained in:
Rick Falkvinge
2016-12-04 03:39:00 +01:00
parent 4174f5d64b
commit 4b91263a9c
3 changed files with 19 additions and 14 deletions
+9 -6
View File
@@ -58,14 +58,17 @@
// Dynamic reloading screws up resizing for some reason, so we'll have to resize the tx grid manually.
var heightBody = $('div#<%=this.DialogEditTx.ClientID%>_divModalCover table.datagrid-btable').height();
$('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-body').height(heightBody);
var heightHeaders = $('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-header').height();
$('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-view').height(heightBody + heightHeaders + 20); // +20 adds some margin on the bottom. It's an arbitrary number.
$('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-wrap').height(heightBody + heightHeaders + 20);
if (heightBody != null)
{
$('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-body').height(heightBody);
$('div#<%=this.DialogEditTx.ClientID%>_divModalBox').height($('div#<%=this.DialogEditTx.ClientID%>_divModalBox div.content').height() + 20);
var heightHeaders = $('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-header').height();
$('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-view').height(heightBody + heightHeaders + 20); // +20 adds some margin on the bottom. It's an arbitrary number.
$('div#<%=this.DialogEditTx.ClientID%>_divModalCover div.datagrid-wrap').height(heightBody + heightHeaders + 20);
$('div#<%=this.DialogEditTx.ClientID%>_divModalBox').height($('div#<%=this.DialogEditTx.ClientID%>_divModalBox div.content').height() + 20);
}
}
});
@@ -188,7 +191,7 @@
function onInspectTransaction(transactionId) {
window.scrollTo(0, 0);
$('body').css('overflow-y', 'hidden');
$('#<%=this.DialogEditTx.ClientID%>_divModalCover').fadeIn();
<%=this.DialogEditTx.ClientID%>_open();
SwarmopsJS.formatInteger(transactionId, function(result) { $('span#spanModalTransactionId').text(result); });
$('#gridTransaction').datagrid({ url: 'Json-InspectLedgerTxData.aspx?TxId=' + transactionId });
+1 -7
View File
@@ -449,12 +449,6 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
}
}
/// <summary>
/// DropBudgets control.
/// </summary>
/// <remarks>
/// Auto-generated field. Moved from designer file to code-behind file.
/// </remarks>
protected Swarmops.Controls.Financial.ComboBudgets DropBudgets;
}
}
+9 -1
View File
@@ -84,7 +84,15 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers {
/// </remarks>
protected global::System.Web.UI.WebControls.Label LabelHeaderInspect;
/// <summary>
/// DropBudgets control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Swarmops.Controls.Financial.ComboBudgets DropBudgets;
/// <summary>
/// LabelHeaderInspectFor control.
/// </summary>