Revision c5657fe8
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
bin/mozilla/menu.pl | ||
---|---|---|
103 | 103 |
my $menuitem = $menu->{$item}; |
104 | 104 |
my $label = apply { s/.*--// } $item; |
105 | 105 |
my $ml = apply { s/--.*// } $item; |
106 |
my $spacer = $nbsp x (($item =~ s/--/--/g) * 2);
|
|
106 |
my $spacer = "spacer" . (0 + $item =~ s/--/--/g);
|
|
107 | 107 |
my $label_icon = $level . "--" . $label . ".png"; |
108 | 108 |
|
109 | 109 |
next if $level && $item ne "$level--$label"; |
... | ... | |
132 | 132 |
label => $label, |
133 | 133 |
height => 24, |
134 | 134 |
class => 'menu', |
135 |
spacer => $spacer, |
|
135 | 136 |
subitems => section_menu($menu, $item) |
136 | 137 |
); |
137 | 138 |
} elsif ($menuitem->{submenu}) { |
... | ... | |
165 | 166 |
|
166 | 167 |
return { |
167 | 168 |
%params, |
168 |
chunks => [ multiline($params{label}) ], |
|
169 |
# chunks => [ multiline($params{label}) ],
|
|
169 | 170 |
}; |
170 | 171 |
} |
171 | 172 |
|
... | ... | |
206 | 207 |
src => $icon_found ? _icon_path($icon, $size) : "image/unterpunkt.png", |
207 | 208 |
alt => $params{label}, |
208 | 209 |
width => $icon_found ? $size : 24, |
209 |
height => $size,
|
|
210 |
height => $icon_found ? $size : 15,
|
|
210 | 211 |
} |
211 | 212 |
} |
212 | 213 |
|
Auch abrufbar als: Unified diff
dom objekte reduziert, spacer entfernt, rendering auf 150ms beschleunigt