From 7b9449d2dad7e804a327e3ea66b5a290011197df Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 30 Jan 2015 14:06:20 -0800 Subject: [PATCH] GUAC-1044: Keep menu header stationary while allowing body to scroll. --- .../main/webapp/app/client/styles/menu.css | 41 ++++- .../webapp/app/client/templates/client.html | 164 ++++++++++-------- 2 files changed, 128 insertions(+), 77 deletions(-) diff --git a/guacamole/src/main/webapp/app/client/styles/menu.css b/guacamole/src/main/webapp/app/client/styles/menu.css index dd96408cc..f3f324025 100644 --- a/guacamole/src/main/webapp/app/client/styles/menu.css +++ b/guacamole/src/main/webapp/app/client/styles/menu.css @@ -21,10 +21,10 @@ */ #menu { - overflow: auto; + overflow: hidden; position: absolute; top: 0; - bottom: 0; + height: 100%; max-width: 100%; width: 480px; background: #EEE; @@ -37,6 +37,43 @@ transition: left 0.125s, opacity 0.125s; } +.menu-content { + overflow: hidden; + display: table; + table-layout: fixed; + width: 100%; + height: 100%; +} + +.menu-header { + display: table-row; + height: 0; +} + +.menu-header h2 { + margin-bottom: 0; +} + +.menu-body { + display: table-row; + height: 100%; +} + +.menu-body-content { + position: relative; + width: 100%; + height: 100%; +} + +.menu-body-scroll-region { + overflow: auto; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; +} + #menu h3 { margin: 1em; } diff --git a/guacamole/src/main/webapp/app/client/templates/client.html b/guacamole/src/main/webapp/app/client/templates/client.html index aa2d5c294..685045312 100644 --- a/guacamole/src/main/webapp/app/client/templates/client.html +++ b/guacamole/src/main/webapp/app/client/templates/client.html @@ -43,7 +43,7 @@
- +
@@ -51,88 +51,102 @@ -