Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
community
godot
Commits
0a724b81
Unverified
Commit
0a724b81
authored
Dec 15, 2017
by
Rémi Verschelde
Committed by
GitHub
Dec 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14713 from poke1024/fix14570
Fixes oversized tooltip labels (issue 14570)
parents
747d1c96
0d826717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
viewport.cpp
scene/main/viewport.cpp
+1
-1
No files found.
scene/main/viewport.cpp
View file @
0a724b81
...
...
@@ -1421,7 +1421,7 @@ void Viewport::_gui_show_tooltip() {
gui
.
tooltip_label
->
set_anchor_and_margin
(
MARGIN_TOP
,
Control
::
ANCHOR_BEGIN
,
ttp
->
get_margin
(
MARGIN_TOP
));
gui
.
tooltip_label
->
set_anchor_and_margin
(
MARGIN_RIGHT
,
Control
::
ANCHOR_END
,
-
ttp
->
get_margin
(
MARGIN_RIGHT
));
gui
.
tooltip_label
->
set_anchor_and_margin
(
MARGIN_BOTTOM
,
Control
::
ANCHOR_END
,
-
ttp
->
get_margin
(
MARGIN_BOTTOM
));
gui
.
tooltip_label
->
set_text
(
tooltip
);
gui
.
tooltip_label
->
set_text
(
tooltip
.
strip_edges
()
);
Rect2
r
(
gui
.
tooltip_pos
+
Point2
(
10
,
10
),
gui
.
tooltip_label
->
get_combined_minimum_size
()
+
ttp
->
get_minimum_size
());
Rect2
vr
=
gui
.
tooltip_label
->
get_viewport_rect
();
if
(
r
.
size
.
x
+
r
.
position
.
x
>
vr
.
size
.
x
)
...
...
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