Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a60b39e7
Unverified
Commit
a60b39e7
authored
Jan 06, 2019
by
Don Gagne
Committed by
GitHub
Jan 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7126 from DonLakeFlyer/DropPanel
DropPane: Size/Position fixes
parents
b9e81086
b60eef46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
DropPanel.qml
src/QmlControls/DropPanel.qml
+3
-6
No files found.
src/QmlControls/DropPanel.qml
View file @
a60b39e7
...
@@ -37,10 +37,7 @@ Item {
...
@@ -37,10 +37,7 @@ Item {
readonly
property
real
_arrowBaseHeight
:
radius
// Height of vertical side of arrow
readonly
property
real
_arrowBaseHeight
:
radius
// Height of vertical side of arrow
readonly
property
real
_arrowPointWidth
:
radius
*
0.666
// Distance from vertical side to point
readonly
property
real
_arrowPointWidth
:
radius
*
0.666
// Distance from vertical side to point
readonly
property
real
_dropCornerRadius
:
ScreenTools
.
defaultFontPixelWidth
*
0.5
readonly
property
real
_dropMargin
:
ScreenTools
.
defaultFontPixelWidth
readonly
property
real
_dropCornerRadiusX2
:
_dropCornerRadius
*
2
readonly
property
real
_dropMargin
:
_dropCornerRadius
readonly
property
real
_dropMarginX2
:
_dropMargin
*
2
property
var
_dropEdgeTopPoint
property
var
_dropEdgeTopPoint
property
real
_dropEdgeHeight
property
real
_dropEdgeHeight
...
@@ -74,8 +71,8 @@ Item {
...
@@ -74,8 +71,8 @@ Item {
var
panelComponentWidth
=
panelLoader
.
item
.
width
var
panelComponentWidth
=
panelLoader
.
item
.
width
var
panelComponentHeight
=
panelLoader
.
item
.
height
var
panelComponentHeight
=
panelLoader
.
item
.
height
dropDownItem
.
width
=
panelComponentWidth
+
(
_dropMargin
X2
*
2
)
+
_arrowPointWidth
dropDownItem
.
width
=
panelComponentWidth
+
(
_dropMargin
*
2
)
+
_arrowPointWidth
dropDownItem
.
height
=
panelComponentHeight
+
(
_dropMargin
X2
*
2
)
dropDownItem
.
height
=
panelComponentHeight
+
(
_dropMargin
*
2
)
dropDownItem
.
x
=
_dropEdgeTopPoint
.
x
+
_dropMargin
dropDownItem
.
x
=
_dropEdgeTopPoint
.
x
+
_dropMargin
dropDownItem
.
y
=
_dropEdgeTopPoint
.
y
-
(
dropDownItem
.
height
/
2
)
+
radius
dropDownItem
.
y
=
_dropEdgeTopPoint
.
y
-
(
dropDownItem
.
height
/
2
)
+
radius
...
...
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