mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-09 07:48:58 +00:00
Test case for improper scaling of Rectangles when below Layout
This commit is contained in:
@@ -33,6 +33,13 @@ NLoader {
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
// A basic rectangle, which scale ok because out of layout
|
||||
Rectangle {
|
||||
width: Style.baseWidgetSize * scaling
|
||||
height: Style.baseWidgetSize * scaling
|
||||
color: Colors.accentTertiary
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Style.marginXL * scaling
|
||||
@@ -156,13 +163,19 @@ NLoader {
|
||||
font.weight: Style.fontWeightBold
|
||||
}
|
||||
|
||||
NBusyIndicator {
|
||||
}
|
||||
NBusyIndicator {}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
||||
// A basic rectangle, which does not scale right?!
|
||||
Rectangle {
|
||||
width: Style.baseWidgetSize * scaling
|
||||
height: Style.baseWidgetSize * scaling
|
||||
color: Colors.accentPrimary
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user