Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Nano
Commits
f873e375
Commit
f873e375
authored
Jan 29, 2021
by
Marco Martin
Browse files
adjust a bit containment config view sizing
parent
335d75d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
shell/contents/configuration/AppletConfiguration.qml
View file @
f873e375
...
...
@@ -29,8 +29,8 @@ import org.kde.plasma.configuration 2.0
//TODO: all of this will be done with desktop components
Rectangle
{
id
:
root
Layout.minimumWidth
:
plasmoid
.
availableScreenRect
.
width
Layout.minimumHeight
:
plasmoid
.
availableScreenRect
.
height
//
Layout.minimumWidth: plasmoid.availableScreenRect.width
//
Layout.minimumHeight: plasmoid.availableScreenRect.height
LayoutMirroring.enabled
:
Qt
.
application
.
layoutDirection
===
Qt
.
RightToLeft
...
...
shell/contents/configuration/ContainmentConfiguration.qml
View file @
f873e375
...
...
@@ -34,8 +34,8 @@ AppletConfiguration {
isContainment
:
true
internalDialog.visible
:
false
internalDialog.width
:
Math
.
min
(
root
.
height
-
units
.
gridUnit
*
2
,
Math
.
max
(
internalDialog
.
implicitWidth
,
units
.
gridUnit
*
45
))
internalDialog.height
:
Math
.
min
(
root
.
width
,
Math
.
max
(
internalDialog
.
implicitHeight
,
units
.
gridUnit
*
29
))
internalDialog.width
:
root
.
width
<
root
.
height
?
root
.
width
:
Math
.
min
(
root
.
width
,
Math
.
max
(
internalDialog
.
implicitWidth
,
units
.
gridUnit
*
45
))
internalDialog.height
:
Math
.
min
(
root
.
height
,
Math
.
max
(
internalDialog
.
implicitHeight
,
units
.
gridUnit
*
29
))
readonly
property
bool
horizontal
:
root
.
width
>
root
.
height
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment