From 0d36a7edcadf3ef0013e96318a28d17b10772082 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 18 Oct 2016 11:02:14 +0200 Subject: [PATCH] Actionbar nicht ohne content rendern MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit nötig für korrekte top margins wenn fixiert --- SL/Layout/ActionBar.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Layout/ActionBar.pm b/SL/Layout/ActionBar.pm index edbd44e8d..edb836553 100644 --- a/SL/Layout/ActionBar.pm +++ b/SL/Layout/ActionBar.pm @@ -18,6 +18,7 @@ sub pre_content { my ($self) = @_; my $content = join '', map { $_->render } @{ $self->actions }; + return if !$content; $::request->presenter->html_tag('div', $content, class => HTML_CLASS); } -- 2.20.1