Comments (2)
if stretch mode (display/window/stretch/mode) is set to viewport, the root window (get_tree().root) will not emit its size_changed signal.
This only happens when display/window/stretch/mode
is set to viewport
and display/window/stretch/aspect
is set to ignore
or keep
(but I assume this also happens with keep_width
/keep_height
when the height/width isn't being changed). When aspect
is set to expand
, the size_changed
signal will be emitted when the window is resized through the window manager.
only happens to the root window
This does also happen for child windows with the same attributes, although both components of the content_scale_size
vector need to be non-zero, otherwise the viewport will be resized. Also, setting content_scale_size
on a window will emit the size_changed
signal, even with the attributes set as above.
I'm wondering if this is technically a bug or if it's actually "working as intended" since the stretch mode tooltip mentions that "the size of the root Viewport
is set precisely to the base size" and "finally, this viewport is scaled to fit the screen", so I guess the base size (I assume that means content_scale_size
) of the viewport never really changes when the aspect ratio is kept. But the size
attribute changes, so it would make sense that the size_changed
signal is emitted, unless it really is only supposed to emit when the base size is changed, but then there should be two signals imo, size_changed
for the size
and content_scale_size_changed
for the content_scale_size
.
EDIT: I just saw that this is probably a duplicate of #79336
from godot.
Thanks for the report! Consolidating in godotengine/godot-proposals#8788, as this is intended behavior (the viewport size does not actually change when resizing the window). Therefore, implementing a notification for this is feature proposal territory.
from godot.
Related Issues (20)
- Animation does not play after set input name of Transition in AnimationTree HOT 2
- Color's from Panel/ColorRect Nodes is not being rendered on Android using Godot 4.3 Beta 3 (old Vulkan 1.0 drivers) HOT 13
- Godot Crashes when importing empty .obj file. HOT 3
- Collision is not detected the very first time _physics_process() is executed in Godot 4.3.beta3 (unlike Godot 3.4, which works as expected)
- Popup window is closed by tooltips of other components on X11 HOT 7
- ScrollContainer follow focus is not taking scrollbar in to account when layout_direction is set to Right-to-Left
- When opening large text-files as string/text it will show null in the editor HOT 1
- Improve usability of multiple file selection checkboxes in the Import dock HOT 1
- Android Play Billing library version update ? HOT 3
- RichTextLabel: Newly Instanced RichTextLabel's add_text() and append_text() don't add to text HOT 4
- arm64 .NET missing from macOS export 4.3 HOT 9
- delta time in _process() is incorrect (never lower than ~0.11) at low frame rates HOT 2
- Changes to RigidBody2D's position through script don't apply until accessing the same property again HOT 2
- Incorrect warning about default value shows up for enum function parameters
- Changes to Primitive Meshes Texel Size project setting do not apply until the scene is reloaded HOT 3
- Occlusion culling will fail if REAL_T_IS_DOUBLE is defined by compiling with precision=double HOT 1
- app crashes when adding a new folder or changing files around the project. HOT 4
- Static properties are not documented as static HOT 1
- Signal using Anonymous Lambda function will keep gaining connections on scene reload, doesn't happen with Callable
- C# [Export] Arrays not working on IOS builds 4.3 Beta
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot.