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 { ...@@ -147,10 +147,9 @@ Page {
url: { url: {
if (model.avatarUrl.startsWith("mxc://")) if (model.avatarUrl.startsWith("mxc://"))
return model.avatarUrl.replace("mxc://", "image://MxcImage/"); return model.avatarUrl.replace("mxc://", "image://MxcImage/");
else if (model.avatarUrl.length > 0) { else if (model.avatarUrl.length > 0)
console.log("image://colorimage/" + model.avatarUrl + "?" + communityItem.unimportantText);
return model.avatarUrl; return model.avatarUrl;
} else else
return ""; return "";
} }
width: avatarSize width: avatarSize
......
...@@ -99,6 +99,7 @@ Rectangle { ...@@ -99,6 +99,7 @@ Rectangle {
model: r.model.values model: r.model.values
currentIndex: r.model.value currentIndex: r.model.value
onCurrentIndexChanged: r.model.value = currentIndex onCurrentIndexChanged: r.model.value = currentIndex
implicitContentWidthPolicy: ComboBox.WidestTextWhenCompleted
WheelHandler{} // suppress scrolling changing values 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