Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/code/layout.js
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Line(s) | |||||
189 | 189 | | |||
190 | function launcherWidth() { | 190 | function launcherWidth() { | ||
191 | var baseWidth = tasks.vertical ? preferredMinHeight() : Math.min(tasks.height, units.iconSizes.small * 3); | 191 | var baseWidth = tasks.vertical ? preferredMinHeight() : Math.min(tasks.height, units.iconSizes.small * 3); | ||
192 | 192 | | |||
193 | return (baseWidth + horizontalMargins()) | 193 | return (baseWidth + horizontalMargins()) | ||
194 | - (adjustMargin(baseWidth, taskFrame.margins.top) + adjustMargin(baseWidth, taskFrame.margins.bottom)); | 194 | - (adjustMargin(baseWidth, taskFrame.margins.top) + adjustMargin(baseWidth, taskFrame.margins.bottom)); | ||
195 | } | 195 | } | ||
196 | 196 | | |||
197 | function maximumContextMenuTextWidth() { | ||||
198 | return (theme.mSize(theme.defaultFont).width * 28); | ||||
199 | } | ||||
200 | | ||||
197 | function layout(container) { | 201 | function layout(container) { | ||
198 | var item; | 202 | var item; | ||
199 | var stripes = calculateStripes(); | 203 | var stripes = calculateStripes(); | ||
200 | var taskCount = tasksModel.count - tasksModel.logicalLauncherCount; | 204 | var taskCount = tasksModel.count - tasksModel.logicalLauncherCount; | ||
201 | var width = taskWidth(); | 205 | var width = taskWidth(); | ||
202 | var adjustedWidth = width; | 206 | var adjustedWidth = width; | ||
203 | var height = taskHeight(); | 207 | var height = taskHeight(); | ||
204 | 208 | | |||
Show All 31 Lines |