Commit 4a64b282 authored by Volker Krause's avatar Volker Krause
Browse files

Ensure we don't overdraw the ticket barcode beyond the page size

parent a6e62d51
......@@ -61,7 +61,7 @@ Item {
Prison.Barcode {
id: barcode
anchors.centerIn: background
width: background.barcodeTargetWidth
width: background.showVertical ? background.barcodeTargetWidth : Math.min(background.barcodeTargetWidth, barcodeContainer.width)
height: background.barcodeTargetHeight
rotation: background.showVertical ? 90 : 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment