Under Review
over 1 year ago

bug: vivoactive5 simulator.json has wrong width data for datafields

When I looked at my DF on the 4 possible layouts on vivoactive5 in the simulator I noticed that on "3 Fields" and "4 Fields" the fields are not centered. They are off to the right. I think the reason is that in simulator.json some the width values of the fields in these 2 layouts are 416 instead of 390 and 207 instead of 195:

                    {
                        "drawBorders": false,
                        "fields": [
                            {
                                "data": {
                                    "font": "numberThaiHot",
                                    "justification": "center",
                                    "width": 406,
                                    "x": 195,
                                    "y": 128
                                },
                                "label": {
                                    "font": "xtiny",
                                    "justification": "center",
                                    "x": 197,
                                    "y": 41
                                },
                                "labelDisabled": false,
                                "location": {
                                    "height": 129,
                                    "width": 416, // correct: 390
                                    "x": 0,
                                    "y": 0
                                },
                                "obscurity": [
                                    "left",
                                    "top",
                                    "right"
                                ]
                            },
                            {
                                "data": {
                                    "font": "numberThaiHot",
                                    "justification": "center",
                                    "width": 406,
                                    "x": 195,
                                    "y": 123
                                },
                                "label": {
                                    "font": "xtiny",
                                    "justification": "center",
                                    "x": 197,
                                    "y": 30
                                },
                                "labelDisabled": false,
                                "location": {
                                    "height": 128,
                                    "width": 416, // correct: 390
                                    "x": 0,
                                    "y": 131
                                },
                                "obscurity": [
                                    "left",
                                    "right"
                                ]
                            },
                            {
                                "data": {
                                    "font": "numberHot",
                                    "justification": "center",
                                    "width": 406,
                                    "x": 194,
                                    "y": 112
                                },
                                "label": {
                                    "font": "xtiny",
                                    "justification": "center",
                                    "x": 196,
                                    "y": 41
                                },
                                "labelDisabled": false,
                                "location": {
                                    "height": 129,
                                    "width": 416, // correct: 390
                                    "x": 0,
                                    "y": 261
                                },
                                "obscurity": [
                                    "left",
                                    "right",
                                    "bottom"
                                ]
                            }
                        ],
                        "name": "3 Fields"
                    },
                    {
                        "drawBorders": false,
                        "fields": [
                            {
                                "data": {
                                    "font": "numberThaiHot",
                                    "justification": "center",
                                    "width": 406,
                                    "x": 195,
                                    "y": 128
                                },
                                "label": {
                                    "font": "xtiny",
                                    "justification": "center",
                                    "x": 197,
                                    "y": 41
                                },
                                "labelDisabled": false,
                                "location": {
                                    "height": 129,
                                    "width": 416, // correct: 390
                                    "x": 0,
                                    "y": 0
                                },
                                "obscurity": [
                                    "left",
                                    "top",
                                    "right"
                                ]
                            },
                            {
                                "data": {
                                    "font": "simExtNumber1",
                                    "justification": "center",
                                    "width": 197,
                                    "x": 93,
                                    "y": 107
                                },
                                "label": {
                                    "font": "xtiny",
                                    "justification": "center",
                                    "x": 95,
                                    "y": 33
                                },
                                "labelDisabled": false,
                                "location": {
                                    "height": 128,
                                    "width": 207, // correct: 195
                                    "x": 0,
                                    "y": 139
                                },
                                "obscurity": [
                                    "left"
                                ]
                            },
                            {
                                "data": {
                                    "font": "simExtNumber1",
                                    "justification": "center",
                                    "width": 197,
                                    "x": 80,
                                    "y": 107
                                },
                                "label": {
                                    "font": "xtiny",
                                    "justification": "center",
                                    "x": 82,
                                    "y": 33
                                },
                                "labelDisabled": false,
                                "location": {
                                    "height": 128,
                                    "width": 207, // correct: 195
                                    "x": 209,
                                    "y": 139
                                },
                                "obscurity": [
                                    "right"
                                ]
                            },
                            {
                                "data": {
                                    "font": "numberHot",
                                    "justification": "center",
                                    "width": 406,
                                    "x": 194,
                                    "y": 95
                                },
                                "label": {
                                    "font": "xtiny",
                                    "justification": "center",
                                    "x": 196,
                                    "y": 24
                                },
                                "labelDisabled": false,
                                "location": {
                                    "height": 129,
                                    "width": 416, // correct: 390
                                    "x": 0,
                                    "y": 278
                                },
                                "obscurity": [
                                    "left",
                                    "right",
                                    "bottom"
                                ]
                            }
                        ],
                        "name": "4 Fields"
                    }

Parents
  • Garmin, I see it was modified in the new device xmls, but it's still not correct for layout "3 Fields", "4 Fields". My DF draws dynamically "in the middle" of the canvas reported by CIQ, and it works both on other devices and even on layout "1 Field", "2 Fields" of vivoactive5, however it's still not centered in "3 Fields" and "4 Fields", see pics:

Comment
  • Garmin, I see it was modified in the new device xmls, but it's still not correct for layout "3 Fields", "4 Fields". My DF draws dynamically "in the middle" of the canvas reported by CIQ, and it works both on other devices and even on layout "1 Field", "2 Fields" of vivoactive5, however it's still not centered in "3 Fields" and "4 Fields", see pics:

Children
No Data