Fix horizontal scroll on category selection

This commit is contained in:
Angela Mazzurco 2017-09-06 18:50:20 +02:00
parent efd14e4465
commit 9386657955

View File

@ -100,38 +100,37 @@ Rectangle
//seperator
Rectangle
{
color: "black"
anchors.bottom: parent.bottom
anchors.bottomMargin: buttonWidth
width: parent.width
height: 1
}
Rectangle
{
color: emojiPicker.color
anchors.bottom: parent.bottom
width: parent.width
height: buttonWidth
}
Rectangle
{
color: "black"
anchors.bottom: parent.bottom
anchors.bottomMargin: buttonWidth
width: parent.width
height: 1
}
//emoji category selector
ListView
{
width: parent.width
anchors.bottom: parent.bottom
anchors.bottomMargin: buttonWidth
orientation: ListView.Horizontal
model: emojiCategoryButtons
delegate: EmojiCategoryButton
//emoji category selector
ListView
{
width: buttonWidth
height: buttonWidth
color: emojiPicker.color
fontName: rootFontName
}
width: parent.width
orientation: ListView.Horizontal
anchors.fill: parent
model: emojiCategoryButtons
delegate: EmojiCategoryButton
{
width: buttonWidth
height: buttonWidth
color: emojiPicker.color
fontName: rootFontName
}
}
}
ListModel