Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
0d3ad6fd
Commit
0d3ad6fd
authored
Oct 11, 2019
by
Marco Martin
Browse files
stop at bounds for the top panel
parent
7347c671
Changes
2
Hide whitespace changes
Inline
Side-by-side
containments/panel/package/contents/ui/SlidingPanel.qml
View file @
0d3ad6fd
...
...
@@ -164,6 +164,7 @@ NanoShell.FullScreenOverlay {
onContentYChanged
:
{
window
.
offset
=
-
contentY
+
contentArea
.
height
}
boundsBehavior
:
Flickable
.
StopAtBounds
contentWidth
:
window
.
width
contentHeight
:
window
.
height
*
2
bottomMargin
:
window
.
height
...
...
containments/panel/package/contents/ui/main.qml
View file @
0d3ad6fd
...
...
@@ -252,7 +252,7 @@ PlasmaCore.ColorScope {
slidingPanel
.
showFullScreen
();
}
onPositionChanged
:
{
slidingPanel
.
offset
=
slidingPanel
.
offset
+
(
mouse
.
y
-
oldMouseY
);
slidingPanel
.
offset
=
Math
.
min
(
slidingPanel
.
contentItem
.
height
,
slidingPanel
.
offset
+
(
mouse
.
y
-
oldMouseY
)
)
;
oldMouseY
=
mouse
.
y
;
}
onReleased
:
{
...
...
Bart Ribbers
@bribbers
mentioned in issue
#14 (closed)
·
Oct 11, 2019
mentioned in issue
#14 (closed)
mentioned in issue #14
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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