Improved task size calculation.
This commit is contained in:
parent
4998ea5aff
commit
f353c01703
1 changed files with 2 additions and 2 deletions
|
@ -215,11 +215,11 @@ class Taskbar extends App.Controller
|
|||
elementsOversizeLeftTotal = 0
|
||||
$('#task .task').each(
|
||||
(position, element) ->
|
||||
widthTask = $(element).parent().width()
|
||||
widthTask = $(element).width()
|
||||
if widthTask > task_size
|
||||
elementsOversize++
|
||||
else
|
||||
elementsOversizeLeftTotal += ( width / task_count ) - widthTask
|
||||
elementsOversizeLeftTotal += task_size - widthTask
|
||||
)
|
||||
|
||||
addOversize = elementsOversizeLeftTotal / elementsOversize
|
||||
|
|
Loading…
Reference in a new issue