mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX: [STUDIO-1997] SpinInput messureSize
Change-Id: I5923248b4980cb7638ce683d4e32e9c271b102cd
This commit is contained in:
		
							parent
							
								
									00221d8652
								
							
						
					
					
						commit
						21a6281998
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -106,7 +106,7 @@ void SpinInput::SetTextColor(StateColor const &color) | ||||||
| 
 | 
 | ||||||
| void SpinInput::SetSize(wxSize const &size) | void SpinInput::SetSize(wxSize const &size) | ||||||
| { | { | ||||||
|     wxWindow::SetSize(size); |     StaticBox::SetSize(size); | ||||||
|     Rescale(); |     Rescale(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -204,11 +204,11 @@ void SpinInput::messureSize() | ||||||
|     int h = textSize.y + 8; |     int h = textSize.y + 8; | ||||||
|     if (size.y < h) { |     if (size.y < h) { | ||||||
|         size.y = h; |         size.y = h; | ||||||
|         SetSize(size); |  | ||||||
|         SetMinSize(size); |  | ||||||
|     } else { |  | ||||||
|         textSize.y = size.y * 14 / 24; |  | ||||||
|     } |     } | ||||||
|  |     wxSize minSize = size; | ||||||
|  |     minSize.x      = GetMinWidth(); | ||||||
|  |     StaticBox::SetSize(size); | ||||||
|  |     SetMinSize(size); | ||||||
|     wxSize btnSize = {14, (size.y - 4) / 2}; |     wxSize btnSize = {14, (size.y - 4) / 2}; | ||||||
|     btnSize.x = btnSize.x * btnSize.y / 10; |     btnSize.x = btnSize.x * btnSize.y / 10; | ||||||
|     wxClientDC dc(this); |     wxClientDC dc(this); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 chunmao.guo
						chunmao.guo