mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	Userspace: Use Core::Object::add() when building interfaces
This commit is contained in:
		
							parent
							
								
									7ec758773c
								
							
						
					
					
						commit
						3d20da9ee4
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-19 09:08:47 +09:00 
				
			
			Author: https://github.com/awesomekling
Commit: 3d20da9ee4
			
					 87 changed files with 403 additions and 438 deletions
				
			
		|  | @ -52,7 +52,7 @@ RefPtr<LayoutNode> HTMLInputElement::create_layout_node(const StyleProperties*) | |||
| 
 | ||||
|     RefPtr<GUI::Widget> widget; | ||||
|     if (type() == "submit") { | ||||
|         auto button = GUI::Button::construct(value(), &html_view); | ||||
|         auto button = html_view.add<GUI::Button>(value()); | ||||
|         int text_width = Gfx::Font::default_font().width(value()); | ||||
|         button->set_relative_rect(0, 0, text_width + 20, 20); | ||||
|         button->on_click = [this](auto&) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling