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
634e9460
Commit
634e9460
authored
May 17, 2020
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix popup window size calculation in popup_centered_ratio by using Rect2
parent
163687d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
window.cpp
scene/main/window.cpp
+1
-1
No files found.
scene/main/window.cpp
View file @
634e9460
...
...
@@ -992,7 +992,7 @@ void Window::popup_centered_ratio(float p_ratio) {
ERR_FAIL_COND
(
!
is_inside_tree
());
ERR_FAIL_COND_MSG
(
window_id
==
DisplayServer
::
MAIN_WINDOW_ID
,
"Can't popup the main window."
);
Rect2
i
parent_rect
;
Rect2
parent_rect
;
if
(
is_embedded
())
{
parent_rect
=
get_parent_viewport
()
->
get_visible_rect
();
...
...
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