From 5400c51069d19d2a07752f3fe691e24074603dd8 Mon Sep 17 00:00:00 2001 From: talkabout Date: Sat, 8 Aug 2015 16:17:43 +0000 Subject: [PATCH] 95_Dashboard: fixed issue with disappearing menu and command input in room 'Everything' git-svn-id: https://svn.fhem.de/fhem/trunk@9035 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/95_Dashboard.pm | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index d5bd970ef..4a683a5df 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 95_Dashboard: fixed issue with disappearing menu and command input in + room "Everything" - feature: 57_Calendar: made download from URL non-blocking - bugfix: 95_Dashboard: fixed problem with smallscreen styles that caused devices to be shown in wrong tabs diff --git a/fhem/FHEM/95_Dashboard.pm b/fhem/FHEM/95_Dashboard.pm index 3018caa68..b3a7b26a3 100644 --- a/fhem/FHEM/95_Dashboard.pm +++ b/fhem/FHEM/95_Dashboard.pm @@ -357,6 +357,17 @@ sub Dashboard_CGI($) $ret = '
'; if ($name && defined($defs{$name})) { + my $showfullsize = AttrVal($defs{$name}{NAME}, "dashboard_showfullsize", 0); + + if ($showfullsize) { + if ($FW_RET =~ m/]*class="([^"]+)"[^>]*>/) { + $FW_RET =~ s/class="$1"/class="$1 dashboard_fullsize"/; + } + else { + $FW_RET =~ s/]*class="([^"]+)"[^>]*>/) { - $FW_RET =~ s/class="$1"/class="$1 dashboard_fullsize"/; - } - else { - $FW_RET =~ s/