Fix selecting in expanded down dropdown.
This commit is contained in:
		
							parent
							
								
									3f0fed19d8
								
							
						
					
					
						commit
						ebe45f3fa1
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -470,8 +470,7 @@ ClickHandlerPtr Manager::computeButtonLink(QPoint position) const {
 | 
				
			||||||
	const auto top = _button->expandUp()
 | 
						const auto top = _button->expandUp()
 | 
				
			||||||
		? (inner.y() + inner.height() - position.y())
 | 
							? (inner.y() + inner.height() - position.y())
 | 
				
			||||||
		: (position.y() - inner.y());
 | 
							: (position.y() - inner.y());
 | 
				
			||||||
	const auto scroll = _button->scroll();
 | 
						const auto shifted = top + _button->scroll();
 | 
				
			||||||
	const auto shifted = top + scroll * (_button->expandUp() ? 1 : -1);
 | 
					 | 
				
			||||||
	const auto between = st::reactionCornerSkip;
 | 
						const auto between = st::reactionCornerSkip;
 | 
				
			||||||
	const auto oneHeight = (st::reactionCornerSize.height() + between);
 | 
						const auto oneHeight = (st::reactionCornerSize.height() + between);
 | 
				
			||||||
	const auto index = std::clamp(
 | 
						const auto index = std::clamp(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue