Hi
I am implementing a TileGrid control in my application to display 3 tiles per row and compute the tileWidth based on the screen width.
TileGrid when rendered has tileWidth of "4px" lesser than the computed width.
Eg: if screen width is 375 px, layout Margin = 5 px, tileMargin = 5 px,
my computed width is (375 - 10 -10) / 3 = 118.33, which I expect to be set to tileWidth.
But when displayed and inspected the tileWidth = 114 px.
Note:
# When the Tile is selected / disabled the width is correctly set and has 118 px when inspected
# This issue is observed Only on mobile device
Please can someone guide me and provide pointers to fix the issue in regards to tileWidth.
Appreciate your help.
Thanks
Rakesh Kumar
I am implementing a TileGrid control in my application to display 3 tiles per row and compute the tileWidth based on the screen width.
TileGrid when rendered has tileWidth of "4px" lesser than the computed width.
Eg: if screen width is 375 px, layout Margin = 5 px, tileMargin = 5 px,
my computed width is (375 - 10 -10) / 3 = 118.33, which I expect to be set to tileWidth.
But when displayed and inspected the tileWidth = 114 px.
Note:
# When the Tile is selected / disabled the width is correctly set and has 118 px when inspected
# This issue is observed Only on mobile device
Please can someone guide me and provide pointers to fix the issue in regards to tileWidth.
Appreciate your help.
Thanks
Rakesh Kumar
Comment