Use webview bots window size like on mobiles.
This commit is contained in:
		
							parent
							
								
									0e45f3ebd9
								
							
						
					
					
						commit
						859e41f95a
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -136,6 +136,7 @@ paymentsLoading: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
 | 
				
			||||||
	thickness: 4px;
 | 
						thickness: 4px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					botWebViewPanelSize: size(384px, 694px);
 | 
				
			||||||
botWebViewBottomButton: RoundButton(paymentsPanelSubmit) {
 | 
					botWebViewBottomButton: RoundButton(paymentsPanelSubmit) {
 | 
				
			||||||
	height: 56px;
 | 
						height: 56px;
 | 
				
			||||||
	font: boxButtonFont;
 | 
						font: boxButtonFont;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -323,7 +323,7 @@ Panel::Panel(
 | 
				
			||||||
, _menuButtons(menuButtons)
 | 
					, _menuButtons(menuButtons)
 | 
				
			||||||
, _widget(std::make_unique<SeparatePanel>())
 | 
					, _widget(std::make_unique<SeparatePanel>())
 | 
				
			||||||
, _allowClipboardRead(allowClipboardRead) {
 | 
					, _allowClipboardRead(allowClipboardRead) {
 | 
				
			||||||
	_widget->setInnerSize(st::paymentsPanelSize);
 | 
						_widget->setInnerSize(st::botWebViewPanelSize);
 | 
				
			||||||
	_widget->setWindowFlag(Qt::WindowStaysOnTopHint, false);
 | 
						_widget->setWindowFlag(Qt::WindowStaysOnTopHint, false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	_widget->closeRequests(
 | 
						_widget->closeRequests(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue