AMBARI-19315. Change IFrame container layout for the Ambari Views from fixed to fluid (pallavkul)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/106851bf Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/106851bf Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/106851bf Branch: refs/heads/branch-dev-patch-upgrade Commit: 106851bfc358ec417d590403407bb964d5c3c9f1 Parents: 853a1ce Author: pallavkul <[email protected]> Authored: Tue Jan 3 17:24:08 2017 +0530 Committer: pallavkul <[email protected]> Committed: Tue Jan 3 17:24:08 2017 +0530 ---------------------------------------------------------------------- ambari-web/app/routes/views.js | 10 ++++++++++ ambari-web/app/styles/application.less | 3 +++ ambari-web/app/styles/bootstrap_overrides.less | 4 ++++ 3 files changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/106851bf/ambari-web/app/routes/views.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/routes/views.js b/ambari-web/app/routes/views.js index 1d19279..88b1251 100644 --- a/ambari-web/app/routes/views.js +++ b/ambari-web/app/routes/views.js @@ -36,6 +36,16 @@ module.exports = Em.Route.extend({ viewDetails: Em.Route.extend({ route: '/:viewName/:version/:instanceName', + + enter: function (router) { + Em.$('body').addClass('contribview'); + }, + + exit:function (router) { + this._super(); + Em.$('body').removeClass('contribview'); + }, + connectOutlets: function (router, params) { // find and set content for `mainViewsDetails` and associated controller var href = ['/views', params.viewName, params.version, params.instanceName + "/"].join('/'); http://git-wip-us.apache.org/repos/asf/ambari/blob/106851bf/ambari-web/app/styles/application.less ---------------------------------------------------------------------- diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less index a89296c..7d18cf5 100644 --- a/ambari-web/app/styles/application.less +++ b/ambari-web/app/styles/application.less @@ -1988,6 +1988,9 @@ i.glyphicon-asterisks { width: 940px; padding: 0 15px; } + .contribview .main-container { + width: auto; + } } .filter-combobox{ http://git-wip-us.apache.org/repos/asf/ambari/blob/106851bf/ambari-web/app/styles/bootstrap_overrides.less ---------------------------------------------------------------------- diff --git a/ambari-web/app/styles/bootstrap_overrides.less b/ambari-web/app/styles/bootstrap_overrides.less index b8cdf49..a856d82 100644 --- a/ambari-web/app/styles/bootstrap_overrides.less +++ b/ambari-web/app/styles/bootstrap_overrides.less @@ -351,6 +351,10 @@ select.form-control { width: 1170px; } + .contribview .main-container { + width: auto; + } + .thumbnails { margin-left: -30px; }
