Resize field type selection to fit screen
This commit is contained in:
		@ -98,7 +98,7 @@ protected:
 | 
				
			|||||||
    touchgfx::TextArea brakeLabel;
 | 
					    touchgfx::TextArea brakeLabel;
 | 
				
			||||||
    touchgfx::Container dataFields;
 | 
					    touchgfx::Container dataFields;
 | 
				
			||||||
    touchgfx::ScrollWheel fieldTypeSelection;
 | 
					    touchgfx::ScrollWheel fieldTypeSelection;
 | 
				
			||||||
    touchgfx::DrawableListItems<DriverViewFieldSelection, 10> fieldTypeSelectionListItems;
 | 
					    touchgfx::DrawableListItems<DriverViewFieldSelection, 8> fieldTypeSelectionListItems;
 | 
				
			||||||
    DriverViewField field3;
 | 
					    DriverViewField field3;
 | 
				
			||||||
    DriverViewField field2;
 | 
					    DriverViewField field2;
 | 
				
			||||||
    DriverViewField field1;
 | 
					    DriverViewField field1;
 | 
				
			||||||
 | 
				
			|||||||
@ -138,8 +138,8 @@ DriverViewViewBase::DriverViewViewBase() :
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    add(brakeTemps);
 | 
					    add(brakeTemps);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    dataFields.setPosition(15, 48, 450, 305);
 | 
					    dataFields.setPosition(15, 48, 450, 257);
 | 
				
			||||||
    fieldTypeSelection.setPosition(0, 80, 150, 225);
 | 
					    fieldTypeSelection.setPosition(0, 80, 150, 177);
 | 
				
			||||||
    fieldTypeSelection.setHorizontal(false);
 | 
					    fieldTypeSelection.setHorizontal(false);
 | 
				
			||||||
    fieldTypeSelection.setCircular(true);
 | 
					    fieldTypeSelection.setCircular(true);
 | 
				
			||||||
    fieldTypeSelection.setEasingEquation(touchgfx::EasingEquations::linearEaseOut);
 | 
					    fieldTypeSelection.setEasingEquation(touchgfx::EasingEquations::linearEaseOut);
 | 
				
			||||||
 | 
				
			|||||||
@ -516,14 +516,14 @@
 | 
				
			|||||||
            "X": 15,
 | 
					            "X": 15,
 | 
				
			||||||
            "Y": 48,
 | 
					            "Y": 48,
 | 
				
			||||||
            "Width": 450,
 | 
					            "Width": 450,
 | 
				
			||||||
            "Height": 305,
 | 
					            "Height": 257,
 | 
				
			||||||
            "Components": [
 | 
					            "Components": [
 | 
				
			||||||
              {
 | 
					              {
 | 
				
			||||||
                "Type": "ScrollWheel",
 | 
					                "Type": "ScrollWheel",
 | 
				
			||||||
                "Name": "fieldTypeSelection",
 | 
					                "Name": "fieldTypeSelection",
 | 
				
			||||||
                "Y": 80,
 | 
					                "Y": 80,
 | 
				
			||||||
                "Width": 150,
 | 
					                "Width": 150,
 | 
				
			||||||
                "Height": 225,
 | 
					                "Height": 177,
 | 
				
			||||||
                "Visible": false,
 | 
					                "Visible": false,
 | 
				
			||||||
                "SelectedItemOffset": 94,
 | 
					                "SelectedItemOffset": 94,
 | 
				
			||||||
                "IsCircular": true,
 | 
					                "IsCircular": true,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user