Skip to content

Commit

Permalink
Remove untrustable fix for fact set wrapping issue (microsoft#1505) (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
almedina-ms authored May 23, 2018
1 parent 133f37e commit d1bd29a
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static FactSetRenderer getInstance()
return s_instance;
}

static TextView createTextView(Context context, String text, TextConfig textConfig, HostConfig hostConfig, long spacing, ContainerStyle containerStyle, boolean isValue)
static TextView createTextView(Context context, String text, TextConfig textConfig, HostConfig hostConfig, long spacing, ContainerStyle containerStyle)
{
TextView textView = new TextView(context);
textView.setText(text);
Expand All @@ -58,11 +58,6 @@ static TextView createTextView(Context context, String text, TextConfig textConf
GridLayout.spec(GridLayout.UNDEFINED));

parem.rightMargin = (int) spacing;
if (isValue)
{
parem.width = 0;
parem.setGravity(Gravity.FILL_HORIZONTAL);
}

textView.setLayoutParams(parem);
return textView;
Expand Down Expand Up @@ -102,8 +97,8 @@ else if ((factSet = FactSet.dynamic_cast(baseCardElement)) == null)
for (int i = 0; i < factVectorSize; i++)
{
Fact fact = factVector.get(i);
gridLayout.addView(createTextView(context, fact.GetTitle(), hostConfig.getFactSet().getTitle(), hostConfig, spacing, containerStyle, false));
gridLayout.addView(createTextView(context, fact.GetValue(), hostConfig.getFactSet().getValue(), hostConfig, 0, containerStyle, true));
gridLayout.addView(createTextView(context, fact.GetTitle(), hostConfig.getFactSet().getTitle(), hostConfig, spacing, containerStyle));
gridLayout.addView(createTextView(context, fact.GetValue(), hostConfig.getFactSet().getValue(), hostConfig, 0, containerStyle));
}

viewGroup.addView(gridLayout);
Expand Down

0 comments on commit d1bd29a

Please sign in to comment.