Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
78d4e8f1
Commit
78d4e8f1
authored
Mar 05, 2021
by
Volker Krause
Browse files
Fix vehicle layouting when we don't have the absolute platform length
parent
7bfa7f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/VehicleLayoutPage.qml
View file @
78d4e8f1
...
...
@@ -117,7 +117,7 @@ Kirigami.ScrollablePage {
Item
{
id
:
vehicleView
property
real
fullLength
:
vehicleModel
.
platform
.
l
ength
>
0
?
vehicleModel
.
platform
.
length
*
3.5
:
1600
// full length of the platform display
property
real
fullLength
:
vehicleModel
.
platform
.
hasAbsoluteL
ength
?
vehicleModel
.
platform
.
length
*
3.5
:
1600
// full length of the platform display
property
real
sectionWidth
:
48
width
:
parent
.
width
height
:
vehicleView
.
fullLength
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment