diff --git a/guacamole/src/main/frontend/src/app/client/directives/guacTiledClients.js b/guacamole/src/main/frontend/src/app/client/directives/guacTiledClients.js index 4fcff0277..9c3ab8663 100644 --- a/guacamole/src/main/frontend/src/app/client/directives/guacTiledClients.js +++ b/guacamole/src/main/frontend/src/app/client/directives/guacTiledClients.js @@ -150,26 +150,9 @@ angular.module('client').directive('guacTiledClients', [function guacTiledClient $scope.hasMultipleClients = ManagedClientGroup.hasMultipleClients; /** - * Returns the CSS width that should be applied to each tile to - * achieve an even arrangement. - * - * @returns {String} - * The CSS width that should be applied to each tile. + * @borrows ManagedClientGroup.getTileGridCSS */ - $scope.getTileWidth = function getTileWidth() { - return Math.floor(100 / $scope.clientGroup.columns) + '%'; - }; - - /** - * Returns the CSS height that should be applied to each tile to - * achieve an even arrangement. - * - * @returns {String} - * The CSS height that should be applied to each tile. - */ - $scope.getTileHeight = function getTileHeight() { - return Math.floor(100 / $scope.clientGroup.rows) + '%'; - }; + $scope.getTileGridCSS = ManagedClientGroup.getTileGridCSS; /** * Returns whether the given ManagedClient has any associated share diff --git a/guacamole/src/main/frontend/src/app/client/styles/tiled-client-list.css b/guacamole/src/main/frontend/src/app/client/styles/tiled-client-list.css index 2da56b71a..c97f67266 100644 --- a/guacamole/src/main/frontend/src/app/client/styles/tiled-client-list.css +++ b/guacamole/src/main/frontend/src/app/client/styles/tiled-client-list.css @@ -25,7 +25,14 @@ .tiled-client-list li.client-tile { position: relative; - display: inline-flex; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -webkit-flex-direction: column; + -ms-flex-direction: column; flex-direction: column; line-height: 1.5; } @@ -56,6 +63,9 @@ } .tiled-client-list li.client-tile .main { + -webkit-box-flex: 1; + -webkit-flex: 1; + -ms-flex: 1; flex: 1; } diff --git a/guacamole/src/main/frontend/src/app/client/templates/guacTiledClients.html b/guacamole/src/main/frontend/src/app/client/templates/guacTiledClients.html index f75cbf2f4..5d8d52ff7 100644 --- a/guacamole/src/main/frontend/src/app/client/templates/guacTiledClients.html +++ b/guacamole/src/main/frontend/src/app/client/templates/guacTiledClients.html @@ -1,12 +1,14 @@ -