Skip to content

Commit

Permalink
padding for text
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jul 12, 2023
1 parent ed83df2 commit 3492d2a
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions app/qml/layers/LayerDetail.qml
Original file line number Diff line number Diff line change
Expand Up @@ -230,26 +230,35 @@ Page {
color: InputStyle.panelBackgroundLight
radius: InputStyle.cornerRadius

Flickable {
id: flickableItem
clip: true
Item {
height: parent.height - 2 * InputStyle.panelMarginV2
width: parent.width - 2 * InputStyle.panelMarginV2

width: parent.width
height: parent.height
contentHeight: attributionText.height
contentWidth: width
maximumFlickVelocity: __androidUtils.isAndroid ? InputStyle.scrollVelocityAndroid : maximumFlickVelocity
x: legendItem.x + InputStyle.panelMarginV2
y: legendItem.y - InputStyle.panelMarginV2

Text {
id: attributionText

Flickable {
id: flickableItem
clip: true

width: parent.width
font.pixelSize: InputStyle.fontPixelSizeNormal
wrapMode: Text.WordWrap
text: __inputUtils.layerAttribution(layerDetailData.mapLayer)
}
height: parent.height
contentHeight: attributionText.height
contentWidth: width
maximumFlickVelocity: __androidUtils.isAndroid ? InputStyle.scrollVelocityAndroid : maximumFlickVelocity

Text {
id: attributionText

width: parent.width
font.pixelSize: InputStyle.fontPixelSizeNormal
wrapMode: Text.WordWrap
text: __inputUtils.layerAttribution(layerDetailData.mapLayer)
}

ScrollBar.vertical: ScrollBar {}
ScrollBar.vertical: ScrollBar {}
}
}
}
}
Expand Down

1 comment on commit 3492d2a

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.07.439111 just submitted!

Please sign in to comment.