[Option][GUI] Folder options
This commit is contained in:
		
							parent
							
								
									169ac07519
								
							
						
					
					
						commit
						bbf364750b
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -103,8 +103,7 @@ int SideBarButton::resizeGetHeight(int newWidth) {
 | 
			
		|||
	const auto text = std::min(
 | 
			
		||||
		_text.countHeight(newWidth - _st.textSkip * 2),
 | 
			
		||||
		_st.style.font->height * kMaxLabelLines);
 | 
			
		||||
	const auto add = text - _st.style.font->height;
 | 
			
		||||
	return result + std::max(add, 0);
 | 
			
		||||
	return result + text;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void SideBarButton::paintEvent(QPaintEvent *e) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue