Commit 87f04ef0 authored by Karel Slaný's avatar Karel Slaný
Browse files

Explicitly increased pop-up menu width.

parent ae62ef95
......@@ -229,16 +229,14 @@ ApplicationWindow {
elide: Text.ElideNone
}
function computeMenuWidth(menu) {
var w = 0
var w = 0.0
for (var i = 0; i < menu.contentData.length; i++) {
dummyText.text = menu.contentData[i].text
dummyText.text = menu.contentData[i].text + "www"
if (w < dummyText.width) {
w = dummyText.width
}
}
dummyText.text = ""
w = Math.round(w * 1.05)
console.log("width " + w)
return w
return Math.round(w)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment