mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 15:53:55 +00:00
Set maximum width of privacy bar to 45% of display width
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -263,6 +263,7 @@ function windows_notifybar_local(title, bar_options)
|
||||
barHeight = Math.floor(m[i].dpi / 3);
|
||||
barWidth = Math.floor(m[i].dpi * 9);
|
||||
if (barWidth > monWidth) { barWidth = monWidth; }
|
||||
if (barWidth > (monWidth * 0.45)) { barWidth = monWidth * 0.45; }
|
||||
}
|
||||
console.info1('Monitor: ' + i + ' = Width[' + (m[i].right - m[i].left) + '] BarHeight[' + barHeight + '] BarWidth[' + barWidth + ']');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user