Skip to content
Snippets Groups Projects
Verified Commit 8259891a authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Make settings combobox width dependent on content

fixes #1164
parent 05f1f8f5
No related branches found
No related tags found
No related merge requests found
Pipeline #4887 failed
......@@ -147,10 +147,9 @@ Page {
url: {
if (model.avatarUrl.startsWith("mxc://"))
return model.avatarUrl.replace("mxc://", "image://MxcImage/");
else if (model.avatarUrl.length > 0) {
console.log("image://colorimage/" + model.avatarUrl + "?" + communityItem.unimportantText);
else if (model.avatarUrl.length > 0)
return model.avatarUrl;
} else
else
return "";
}
width: avatarSize
......
......@@ -99,6 +99,7 @@ Rectangle {
model: r.model.values
currentIndex: r.model.value
onCurrentIndexChanged: r.model.value = currentIndex
implicitContentWidthPolicy: ComboBox.WidestTextWhenCompleted
WheelHandler{} // suppress scrolling changing values
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment