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,13 +100,6 @@ Rectangle
//seperator //seperator
Rectangle
{
color: emojiPicker.color
anchors.bottom: parent.bottom
width: parent.width
height: buttonWidth
}
Rectangle Rectangle
{ {
color: "black" color: "black"
@ -115,14 +108,19 @@ Rectangle
width: parent.width width: parent.width
height: 1 height: 1
} }
Rectangle
{
color: emojiPicker.color
anchors.bottom: parent.bottom
width: parent.width
height: buttonWidth
//emoji category selector //emoji category selector
ListView ListView
{ {
width: parent.width width: parent.width
anchors.bottom: parent.bottom
anchors.bottomMargin: buttonWidth
orientation: ListView.Horizontal orientation: ListView.Horizontal
anchors.fill: parent
model: emojiCategoryButtons model: emojiCategoryButtons
delegate: EmojiCategoryButton delegate: EmojiCategoryButton
@ -133,6 +131,7 @@ Rectangle
fontName: rootFontName fontName: rootFontName
} }
} }
}
ListModel ListModel
{ {