mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-09 05:08:26 +00:00

The padding property is accepted but doesn't have an effect. It was meant for future use but didn't get any use. And people get confuse when they set it. (See #8829) Closes: #8829 Closes: #6288
48 lines
1.2 KiB
Text
48 lines
1.2 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
component MyLayout inherits VerticalLayout {
|
|
padding: 5px;
|
|
Rectangle { padding: 5px; }
|
|
// ^warning{padding only has effect on layout elements}
|
|
}
|
|
|
|
export component Test {
|
|
|
|
padding: 8px;
|
|
// ^warning{padding only has effect on layout elements}
|
|
|
|
padding-bottom: 2px;
|
|
// ^warning{padding-bottom only has effect on layout elements}
|
|
|
|
Rectangle {
|
|
padding-top: 2px;
|
|
// ^warning{padding-top only has effect on layout elements}
|
|
GridLayout {
|
|
padding: 5px;
|
|
}
|
|
}
|
|
|
|
HorizontalLayout {
|
|
padding-left: 5px;
|
|
Rectangle {
|
|
padding: 5px;
|
|
// ^warning{padding only has effect on layout elements}
|
|
Rectangle {
|
|
padding: 5px;
|
|
// ^warning{padding only has effect on layout elements}
|
|
}
|
|
}
|
|
}
|
|
|
|
MyLayout {
|
|
padding-left: 10px;
|
|
Rectangle {
|
|
padding: -5px;
|
|
// ^warning{padding only has effect on layout elements}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|