Detail label width correction
authork.stepaniuk <k.stepaniuk@samsung.com>
Mon, 23 Mar 2020 15:39:01 +0000 (16:39 +0100)
committerLukasz Stanislawski/IoT & UI Sample (PLT) /SRPOL/Engineer/Samsung Electronics <l.stanislaws@samsung.com>
Wed, 25 Mar 2020 08:01:41 +0000 (09:01 +0100)
Signed-off-by: k.stepaniuk <k.stepaniuk@samsung.com>
Oobe/OobeWifi/Controls/Wifi/ApView.cs

index ff7435e..67f05dd 100644 (file)
@@ -42,7 +42,7 @@ namespace Oobe.Wifi.Controls.Wifi
 
                 detail = new TextLabel(GetDetailInfo(wifiAp))
                 {
-                    Size = new Size(200, 17), //200 - long enough
+                    WidthSpecification = LayoutParamPolicies.WrapContent,
                     Position = new Position(79, 56),
                     PixelSize = 14f,
                     TextColor = new Color(0, 0x0C / 255f, 0x2B / 255f, 1.0f),
@@ -55,6 +55,7 @@ namespace Oobe.Wifi.Controls.Wifi
             {
                 range.BackgroundImage = GetRangeImage(wifiAp);
                 detail.Text = GetDetailInfo(wifiAp);
+                detail.WidthSpecification = LayoutParamPolicies.WrapContent;
             }
         }