Extra space after last item on list (UI fix)

This commit is contained in:
Muki 2017-04-30 19:35:10 +02:00
parent f8d6638b3d
commit a7a1ef48c6
4 changed files with 5 additions and 11 deletions

View file

@ -78,10 +78,7 @@ ListItem {
enabled: !last && !daterow
contentHeight: last ?
app.orientation === Orientation.Portrait ? app.panelHeightPortrait : app.panelHeightLandscape :
daterow ? dateRowbox.height :
box.height + expander.height
contentHeight: last ? app.stdHeight : daterow ? dateRowbox.height : box.height + expander.height
onMenuOpenChanged: { if(menuOpen) app.hideBar() }
@ -413,7 +410,7 @@ ListItem {
: utils.getHumanFriendlyTimeString(date)
}
/*Item {
/*Item {
anchors.left: parent.left; anchors.right: parent.right
height: evaluationButtons.height

View file

@ -76,9 +76,7 @@ Page {
property bool defaultIcon: model.icon === "http://s.theoldreader.com/icons/user_icon.png"
enabled: !last
contentHeight: last ?
app.orientation===Orientation.Portrait ? app.panelHeightPortrait : app.panelHeightLandscape :
Math.max(item.height, image.height) + 2 * Theme.paddingMedium
contentHeight: last ? app.stdHeight : Math.max(item.height, image.height) + 2 * Theme.paddingMedium
Rectangle {
anchors.top: parent.top; anchors.right: parent.right

View file

@ -85,9 +85,7 @@ Page {
enabled: !last
anchors.top: parent.top
contentHeight: last ?
app.orientation==Orientation.Portrait ? app.panelHeightPortrait : app.panelHeightLandscape :
Math.max(item.height, image.height) + 2 * Theme.paddingMedium;
contentHeight: last ? app.stdHeight : Math.max(item.height, image.height) + 2 * Theme.paddingMedium;
Rectangle {
anchors.top: parent.top; anchors.right: parent.right

View file

@ -32,6 +32,7 @@ ApplicationWindow {
readonly property bool isOldReader: settings.signinType >= 10 && settings.signinType < 20
readonly property bool isFeedly: settings.signinType >= 20 && settings.signinType < 30
readonly property variant _cache: cache
readonly property int stdHeight: orientation==Orientation.Portrait ? Theme.itemSizeMedium : 0.8 * Theme.itemSizeMedium
cover: CoverPage {}