mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:02:45 +00:00 
			
		
		
		
	 a808cfa75c
			
		
	
	
		a808cfa75c
		
	
	
	
	
		
			
			This patch replaces the concept of fixed resizees with opportunistic ones which use the new SpecialDimension::OpportunisticGrow UISize. This lets us simplify splitter resize code and take advantage of the layout system's automatic calculations for minimum size and expansion. Functionally the same as before, but fixes Splitter's unintended ability to grow window size.
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| @GUI::Widget {
 | |
|     fill_with_background_color: true
 | |
|     layout: @GUI::VerticalBoxLayout {
 | |
|         spacing: 2
 | |
|     }
 | |
| 
 | |
|     @GUI::ToolbarContainer {
 | |
|         @GUI::Toolbar {
 | |
|             name: "toolbar"
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::HorizontalSplitter {
 | |
|         layout: @GUI::HorizontalBoxLayout {
 | |
|             spacing: 4
 | |
|         }
 | |
| 
 | |
|         @GUI::TabWidget {
 | |
|             name: "tab_widget"
 | |
|             preferred_width: 200
 | |
|             container_margins: [6]
 | |
| 
 | |
|             @GUI::TreeView {
 | |
|                 name: "browse_view"
 | |
|                 title: "Browse"
 | |
|             }
 | |
| 
 | |
|             @GUI::Widget {
 | |
|                 name: "search_container"
 | |
|                 title: "Search"
 | |
|                 layout: @GUI::VerticalBoxLayout {}
 | |
| 
 | |
|                 @GUI::TextBox {
 | |
|                     name: "search_box"
 | |
|                     placeholder: "Search"
 | |
|                 }
 | |
| 
 | |
|                 @GUI::ListView {
 | |
|                     name: "search_view"
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         @WebView::OutOfProcessWebView {
 | |
|             name: "web_view"
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::Statusbar {
 | |
|         name: "statusbar"
 | |
|     }
 | |
| }
 |