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 //seperator
Rectangle
{
color: "black"
anchors.bottom: parent.bottom
anchors.bottomMargin: buttonWidth
width: parent.width
height: 1
}
Rectangle Rectangle
{ {
color: emojiPicker.color color: emojiPicker.color
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
width: parent.width width: parent.width
height: buttonWidth height: buttonWidth
}
Rectangle
{
color: "black"
anchors.bottom: parent.bottom
anchors.bottomMargin: buttonWidth
width: parent.width
height: 1
}
//emoji category selector //emoji category selector
ListView ListView
{
width: parent.width
anchors.bottom: parent.bottom
anchors.bottomMargin: buttonWidth
orientation: ListView.Horizontal
model: emojiCategoryButtons
delegate: EmojiCategoryButton
{ {
width: buttonWidth width: parent.width
height: buttonWidth orientation: ListView.Horizontal
color: emojiPicker.color anchors.fill: parent
fontName: rootFontName
} model: emojiCategoryButtons
delegate: EmojiCategoryButton
{
width: buttonWidth
height: buttonWidth
color: emojiPicker.color
fontName: rootFontName
}
}
} }
ListModel ListModel