nice scrolling

pull/20439/head
iejMac 4 years ago
parent 971d44f334
commit 8dc91e40a3
  1. 13
      selfdrive/ui/qt/offroad/terms.qml

@ -11,8 +11,18 @@ Item {
height: 1080
}
Flickable {
id: flickArea
anchors.fill: parent
contentHeight: helpText.height
contentWidth: helpText.width
flickableDirection: Flickable.VerticalFlick
clip: true
Text {
// HTML like markup can also be used
id: helpText
width: 1920
text: '<!DOCTYPE html>
<head>
@ -62,9 +72,10 @@ Item {
// This could also be written font { pointSize: 14 }. Both syntaxes are valid.
font.pointSize: 24
// StyledText format supports fewer tags, but is more efficient than RichText
textFormat: Text.RichText
color: "white"
wrapMode: Text.Wrap
}
}
}

Loading…
Cancel
Save