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