From f77b763ef8638bbe3195a9fac3aff0894b802d4b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 8 Feb 2015 11:42:11 -0800 Subject: [PATCH 1/6] GUAC-1052: Explicitly close custom tags. --- guacamole/src/main/webapp/app/client/templates/client.html | 2 +- .../main/webapp/app/home/templates/guacRecentConnections.html | 2 +- guacamole/src/main/webapp/app/home/templates/home.html | 4 ++-- .../main/webapp/app/manage/templates/manageConnection.html | 2 +- guacamole/src/main/webapp/index.html | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/guacamole/src/main/webapp/app/client/templates/client.html b/guacamole/src/main/webapp/app/client/templates/client.html index 685045312..b6b61ad74 100644 --- a/guacamole/src/main/webapp/app/client/templates/client.html +++ b/guacamole/src/main/webapp/app/client/templates/client.html @@ -29,7 +29,7 @@
- +
diff --git a/guacamole/src/main/webapp/app/home/templates/guacRecentConnections.html b/guacamole/src/main/webapp/app/home/templates/guacRecentConnections.html index 07cf4b52b..27e514daf 100644 --- a/guacamole/src/main/webapp/app/home/templates/guacRecentConnections.html +++ b/guacamole/src/main/webapp/app/home/templates/guacRecentConnections.html @@ -30,7 +30,7 @@
- +
diff --git a/guacamole/src/main/webapp/app/home/templates/home.html b/guacamole/src/main/webapp/app/home/templates/home.html index 887b93cad..5fabad7c5 100644 --- a/guacamole/src/main/webapp/app/home/templates/home.html +++ b/guacamole/src/main/webapp/app/home/templates/home.html @@ -32,7 +32,7 @@

{{'HOME.SECTION_HEADER_RECENT_CONNECTIONS' | translate}}

- +
@@ -41,7 +41,7 @@ + connection-group-template="'app/home/templates/connectionGroup.html'"> diff --git a/guacamole/src/main/webapp/app/manage/templates/manageConnection.html b/guacamole/src/main/webapp/app/manage/templates/manageConnection.html index 85dca606a..b4e5be351 100644 --- a/guacamole/src/main/webapp/app/manage/templates/manageConnection.html +++ b/guacamole/src/main/webapp/app/manage/templates/manageConnection.html @@ -68,7 +68,7 @@ THE SOFTWARE. {{getProtocolParameterName(connection.protocol, parameter.name) | translate}} - + diff --git a/guacamole/src/main/webapp/index.html b/guacamole/src/main/webapp/index.html index 0f6971afb..ffa6eb08b 100644 --- a/guacamole/src/main/webapp/index.html +++ b/guacamole/src/main/webapp/index.html @@ -37,7 +37,7 @@ THE SOFTWARE.
- +
@@ -47,7 +47,7 @@ THE SOFTWARE.
- +
From 40b6858ea90c166e4c2fe39a9b02caf17fcd1e3e Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 10 Feb 2015 14:30:11 -0800 Subject: [PATCH 2/6] GUAC-1052: Work around IE10 issues with display: table. --- guacamole/src/main/webapp/app/client/styles/client.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/app/client/styles/client.css b/guacamole/src/main/webapp/app/client/styles/client.css index f39cc3be6..af8c41f03 100644 --- a/guacamole/src/main/webapp/app/client/styles/client.css +++ b/guacamole/src/main/webapp/app/client/styles/client.css @@ -47,7 +47,7 @@ body.client { } .client-view .client-body { - display: table-row; + display: table-cell; width: 100%; height: 100%; } From 16055e58b07251df52d9193955e81a1ab8330bbb Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 17 Feb 2015 17:05:33 -0800 Subject: [PATCH 3/6] GUAC-1052: Migrate to flexbox layout for menu. --- .../main/webapp/app/client/styles/menu.css | 59 ++++--- .../webapp/app/client/templates/client.html | 152 +++++++++--------- 2 files changed, 114 insertions(+), 97 deletions(-) diff --git a/guacamole/src/main/webapp/app/client/styles/menu.css b/guacamole/src/main/webapp/app/client/styles/menu.css index f3f324025..a08006a37 100644 --- a/guacamole/src/main/webapp/app/client/styles/menu.css +++ b/guacamole/src/main/webapp/app/client/styles/menu.css @@ -38,16 +38,45 @@ } .menu-content { - overflow: hidden; - display: table; - table-layout: fixed; + + /* IE10 */ + display: -ms-flexbox; + -ms-flex-align: stretch; + -ms-flex-direction: column; + + /* Ancient Mozilla */ + display: -moz-box; + -moz-box-align: stretch; + -moz-box-orient: vertical; + + /* Ancient WebKit */ + display: -webkit-box; + -webkit-box-align: stretch; + -webkit-box-orient: vertical; + + /* Old WebKit */ + display: -webkit-flex; + -webkit-align-items: stretch; + -webkit-flex-direction: column; + + /* W3C */ + display: flex; + align-items: stretch; + flex-direction: column; + width: 100%; height: 100%; + } .menu-header { - display: table-row; - height: 0; + + -ms-flex: 0 0 auto; + -moz-box-flex: 0; + -webkit-box-flex: 0; + -webkit-flex: 0 0 auto; + flex: 0 0 auto; + } .menu-header h2 { @@ -55,23 +84,15 @@ } .menu-body { - display: table-row; - height: 100%; -} -.menu-body-content { - position: relative; - width: 100%; - height: 100%; -} + -ms-flex: 0 1 auto; + -moz-box-flex: 1; + -webkit-box-flex: 1; + -webkit-flex: 0 1 auto; + flex: 0 1 auto; -.menu-body-scroll-region { overflow: auto; - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; + } #menu h3 { diff --git a/guacamole/src/main/webapp/app/client/templates/client.html b/guacamole/src/main/webapp/app/client/templates/client.html index b6b61ad74..3e8a36bf0 100644 --- a/guacamole/src/main/webapp/app/client/templates/client.html +++ b/guacamole/src/main/webapp/app/client/templates/client.html @@ -64,86 +64,82 @@ -