And another width bug... :/

This commit is contained in:
Rick Falkvinge
2013-11-30 17:14:16 +00:00
parent 3efc362f9d
commit f68d4e2474
2 changed files with 4 additions and 2 deletions
@@ -158,7 +158,7 @@
<thead>
<tr>
<asp:Literal runat="server" ID="LiteralDescriptionThStart" /><asp:Label ID="LabelGridHeaderDescription" runat="server" Text="XYZ Description" /><asp:Literal runat="server" ID="LiteralDescriptionThClose" Text="</th>" />
<th data-options="field:'budgetName',width:160,sortable:true"><asp:Label ID="LabelGridHeaderBudget" runat="server" Text="XYZ Budget" /></th>
<asp:Literal runat="server" ID="LiteralBudgetThStart" /><asp:Label ID="LabelGridHeaderBudget" runat="server" Text="XYZ Budget" /><asp:Literal runat="server" ID="LiteralBudgetThClose" Text="</th>" />
<asp:Literal runat="server" ID="LiteralExtraTags" />
<th data-options="field:'amountRequested',width:80,align:'right',sortable:true,order:'asc'"><asp:Label ID="LabelGridHeaderRequested" runat="server" Text="XYZ Requested" /></th>
<th data-options="field:'dox',width:40,align:'center'"><asp:Label ID="LabelGridHeaderDocs" runat="server" Text="Doxyz" /></th>
@@ -87,11 +87,12 @@ namespace Swarmops.Frontend.Pages.v5.Financial
FinancialTransactionTagSets tagSets = FinancialTransactionTagSets.ForOrganization(CurrentOrganization);
int descriptionWidth = 140 + 160;
int tagWidth = 180;
if (tagSets.Count > 0)
{
descriptionWidth = 140;
int tagWidth = 360/(tagSets.Count + 1);
tagWidth = 360/(tagSets.Count + 1);
//this.LiteralBudgetNameWidth.Text = tagWidth.ToString(CultureInfo.InvariantCulture);
@@ -108,6 +109,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
}
this.LiteralDescriptionThStart.Text=String.Format("<th data-options=\"field:'description',width:{0}\">", descriptionWidth);
this.LiteralBudgetThStart.Text = String.Format("<th data-options=\"field:'budgetName',width:{0},sortable:true\">", tagWidth);
}
private enum AttestationMode