mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	QML UI: always start edit at top of page
When starting to edit / add a dive, the Flickable needs to be positioned at the top of the page, not the last position shown. For clarity I'll do the re-indentation in the next commit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									3487612337
								
							
						
					
					
						commit
						c00804eff6
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -84,6 +84,7 @@ Kirigami.Page { | ||||||
| 		Transition { | 		Transition { | ||||||
| 			from: "view" | 			from: "view" | ||||||
| 			to: "*" | 			to: "*" | ||||||
|  | 			ParallelAnimation { | ||||||
| 			SequentialAnimation { | 			SequentialAnimation { | ||||||
| 				NumberAnimation { | 				NumberAnimation { | ||||||
| 					target: detailsEditFlickable | 					target: detailsEditFlickable | ||||||
|  | @ -100,6 +101,15 @@ Kirigami.Page { | ||||||
| 					easing.type: Easing.InOutQuad | 					easing.type: Easing.InOutQuad | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
|  | 
 | ||||||
|  | 			NumberAnimation { | ||||||
|  | 				target: detailsEditFlickable | ||||||
|  | 				property: "contentY" | ||||||
|  | 				to: 0 | ||||||
|  | 				duration: 200 | ||||||
|  | 				easing.type: Easing.InOutQuad | ||||||
|  | 			} | ||||||
|  | 			} | ||||||
| 		}, | 		}, | ||||||
| 		Transition { | 		Transition { | ||||||
| 			from: "*" | 			from: "*" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue