Fix info button wrong position issue 88/299388/1 accepted/tizen/unified/20231005.030718
authorWootak Jung <wootak.jung@samsung.com>
Wed, 27 Sep 2023 06:07:09 +0000 (15:07 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 27 Sep 2023 06:07:09 +0000 (15:07 +0900)
Change-Id: If9211fae6171ade8d7d602e13f15c7bf8eeea036
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
SettingBluetooth/SettingBluetooth/View/BtDeviceView.cs
SettingBluetooth/SettingBluetooth/View/BtMainView.cs
packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk

index ec26144b2b94266e898698c2e2c2c7790eaf9554..dcd86ebced96556bbfdbb538bc5f88c8ad10559e 100644 (file)
@@ -1,4 +1,5 @@
-using SettingCore;
+using ElmSharp.Accessible;
+using SettingCore;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
@@ -354,6 +355,7 @@ namespace SettingBluetooth
                     item.Icon.HeightSpecification = 20;
                     item.Clicked += DeviceController.DeviceItemClicked;
                     item.IsSelectable = false;
+                    item.SizeWidth = mDeviceView.SizeWidth;
                     item.Extra = GetInfoButton();
 
                     return item;
@@ -390,6 +392,13 @@ namespace SettingBluetooth
             BtMainView.ShowBtOnMessage();
             mDeviceSource = new DeviceSource();
             mDeviceView = CreateCollectionView(mDeviceSource);
+            mDeviceView.Relayout += (s, e) =>
+            {
+                foreach (var child in mDeviceView.Children)
+                {
+                    child.SizeWidth = mDeviceView.SizeWidth;
+                }
+            };
             view.Add(mDeviceView);
             BtModel.GetBondedDevices();
         }
index 8823b1e5cae1a96881b5e219a6b190e15f0f613b..29f9aed16575310422a15b4de546790384ac29c6 100644 (file)
@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using Tizen;
index f3a8a87fe82a39e7aef757fd97111b2787f15785..ea9e03e97a3e76a35d4939cd8f950e544b99f73c 100644 (file)
Binary files a/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk and b/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk differ