Fix account bar scrolling
All delegates must have the same padding, or the ListView doesn't know how to scroll to a certain index anymore
This commit is contained in:
		@@ -6,10 +6,8 @@ import ".."
 | 
			
		||||
 | 
			
		||||
HTile {
 | 
			
		||||
    id: tile
 | 
			
		||||
    topPadding:
 | 
			
		||||
        padded ? spacing / (firstInSection ? 1 : 2) / (compact ? 2 : 1) : 0
 | 
			
		||||
    bottomPadding:
 | 
			
		||||
        padded ? spacing / (lastInSection ? 1 : 2) / (compact ? 2 : 1) : 0
 | 
			
		||||
    topPadding: padded ? spacing / (compact ? 4 : 2) : 0
 | 
			
		||||
    bottomPadding: topPadding
 | 
			
		||||
 | 
			
		||||
    onLeftClicked: {
 | 
			
		||||
        view.highlightRangeMode    = ListView.NoHighlightRange
 | 
			
		||||
@@ -23,9 +21,4 @@ HTile {
 | 
			
		||||
    signal activated()
 | 
			
		||||
 | 
			
		||||
    property HListView view: ListView.view
 | 
			
		||||
 | 
			
		||||
    readonly property bool firstInSection:
 | 
			
		||||
        ListView.previousSection !== ListView.section
 | 
			
		||||
    readonly property bool lastInSection:
 | 
			
		||||
        ListView.nextSection !== ListView.section
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -33,9 +33,10 @@ HListView {
 | 
			
		||||
    section.property: "for_account"
 | 
			
		||||
    section.labelPositioning:
 | 
			
		||||
        ViewSection.InlineLabels | ViewSection.CurrentLabelAtStart
 | 
			
		||||
 | 
			
		||||
    section.delegate: Account {
 | 
			
		||||
        accountModel: ModelStore.get("accounts").find(section)
 | 
			
		||||
        width: roomList.width
 | 
			
		||||
        accountModel: ModelStore.get("accounts").find(section)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user