mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-17 22:27:00 +02:00
QmlMarketplace - Height of Marketplace Item was improperly calcualted with attributions
This commit is contained in:
parent
db9b44a71a
commit
364a1698fe
1 changed files with 14 additions and 10 deletions
|
@ -53,15 +53,13 @@ Rectangle {
|
|||
|
||||
onAttributionsChanged: {
|
||||
attributionsModel.clear();
|
||||
root.attributions.forEach(function(attribution) {
|
||||
console.log("ATTRIBUITION:" + JSON.stringify(attribution));
|
||||
attributionsModel.append(attribution);
|
||||
});
|
||||
}
|
||||
|
||||
onDescriptionChanged: {
|
||||
descriptionTextModel.clear();
|
||||
descriptionTextModel.append({text: description})
|
||||
if(root.attributions) {
|
||||
root.attributions.forEach(function(attribution) {
|
||||
console.log("ATTRIBUITION:" + JSON.stringify(attribution));
|
||||
attributionsModel.append(attribution);
|
||||
});
|
||||
}
|
||||
footer.evalHeight();
|
||||
}
|
||||
|
||||
signal buy()
|
||||
|
@ -243,6 +241,7 @@ Rectangle {
|
|||
|
||||
function evalHeight() {
|
||||
height = categoriesList.y - buyButton.y + categoriesList.height;
|
||||
console.log("HEIGHT: " + height);
|
||||
}
|
||||
|
||||
HifiControlsUit.Button {
|
||||
|
@ -378,6 +377,7 @@ Rectangle {
|
|||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
width: paintedWidth
|
||||
height: paintedHeight
|
||||
|
||||
text: "ATTRIBUTIONS:"
|
||||
size: 14
|
||||
|
@ -572,6 +572,8 @@ Rectangle {
|
|||
onLinkActivated: {
|
||||
sendToScript({method: 'marketplace_open_link', link: link});
|
||||
}
|
||||
|
||||
onHeightChanged: { footer.evalHeight(); }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -585,7 +587,9 @@ Rectangle {
|
|||
right: parent.right
|
||||
}
|
||||
width: parent.width
|
||||
height: childrenRect.height + 50
|
||||
height: categoriesListModel.count*24 + categoryLabel.height + (isLoggedIn ? 50 : 150)
|
||||
|
||||
onHeightChanged: { footer.evalHeight(); }
|
||||
|
||||
RalewaySemiBold {
|
||||
id: categoryLabel
|
||||
|
|
Loading…
Reference in a new issue