Permalink
Browse files

resize for width reacts on fixedwidth texts

  • Loading branch information...
1 parent 2ce7c2c commit 9d3516bfc064db0e93ba2348c7050fdb7d8d3d20 @cail committed Mar 2, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 Fleux/UIElements/TextElement.cs
View
3 Fleux/UIElements/TextElement.cs
@@ -73,7 +73,8 @@ public string Text
public override void ResizeForWidth(int width)
{
if (this.AutoSizeMode == AutoSizeModeOptions.WrapText ||
- this.AutoSizeMode == AutoSizeModeOptions.OneLineAutoHeight)
+ this.AutoSizeMode == AutoSizeModeOptions.OneLineAutoHeight ||
+ this.AutoSizeMode == AutoSizeModeOptions.OneLineAutoHeightFixedWidth)
{
this.Size = new Size(width, 10); // Height will be calculated later
try

0 comments on commit 9d3516b

Please sign in to comment.