mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Properly adjust the visible editor rect and make limits respected, closes #8328
This commit is contained in:
		
							parent
							
								
									5f1603ca45
								
							
						
					
					
						commit
						42b2d52c88
					
				
					 3 changed files with 4 additions and 0 deletions
				
			
		|  | @ -272,6 +272,8 @@ void EditorNode::_notification(int p_what) { | |||
| 		} | ||||
| 		editor_selection->update(); | ||||
| 
 | ||||
| 		scene_root->set_size_override(true, Size2(GlobalConfig::get_singleton()->get("display/window/width"), GlobalConfig::get_singleton()->get("display/window/height"))); | ||||
| 
 | ||||
| 		ResourceImporterTexture::get_singleton()->update_imports(); | ||||
| 	} | ||||
| 	if (p_what == NOTIFICATION_ENTER_TREE) { | ||||
|  |  | |||
|  | @ -1184,6 +1184,7 @@ Size2 Control::get_parent_area_size() const { | |||
| 
 | ||||
| 		parent_size = get_viewport()->get_visible_rect().size; | ||||
| 	} | ||||
| 
 | ||||
| 	return parent_size; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1156,6 +1156,7 @@ void Viewport::set_size_override(bool p_enable, const Size2 &p_size, const Vecto | |||
| 	size_override_margin = p_margin; | ||||
| 	_update_rect(); | ||||
| 	_update_stretch_transform(); | ||||
| 	emit_signal("size_changed"); | ||||
| } | ||||
| 
 | ||||
| Size2 Viewport::get_size_override() const { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky