You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2015/04/27 21:35:20 UTC

ambari git commit: AMBARI-10715. Rightmost column widget hover interferes with widget control usability (Richard Zang via srimanth)

Repository: ambari
Updated Branches:
  refs/heads/trunk fa6194265 -> 14395f9b4


AMBARI-10715. Rightmost column widget hover interferes with widget control usability (Richard Zang via srimanth)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/14395f9b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/14395f9b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/14395f9b

Branch: refs/heads/trunk
Commit: 14395f9b4ad3720804505922304734537070cf4a
Parents: fa61942
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Mon Apr 27 12:35:03 2015 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Mon Apr 27 12:35:09 2015 -0700

----------------------------------------------------------------------
 .../app/mixins/main/service/configs/widget_popover_support.js    | 2 ++
 ambari-web/app/styles/application.less                           | 4 ++++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/14395f9b/ambari-web/app/mixins/main/service/configs/widget_popover_support.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/main/service/configs/widget_popover_support.js b/ambari-web/app/mixins/main/service/configs/widget_popover_support.js
index 5a1a4cb..98b6f50 100644
--- a/ambari-web/app/mixins/main/service/configs/widget_popover_support.js
+++ b/ambari-web/app/mixins/main/service/configs/widget_popover_support.js
@@ -48,7 +48,9 @@ App.WidgetPopoverSupport = Em.Mixin.create({
 
   initPopover: function () {
     if (this.get('isPopoverEnabled') !== false) {
+      var leftPopoverTemplate = '<div class="popover config-widget-left-popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>';
       App.popover(this.$('.original-widget'), {
+        template: this.get('popoverPlacement') == 'left'? leftPopoverTemplate : undefined,
         title: Em.I18n.t('installer.controls.serviceConfigPopover.title').format(
           this.get('configLabel'),
           (this.get('configLabel') == this.get('config.name')) ? '' : this.get('config.name')

http://git-wip-us.apache.org/repos/asf/ambari/blob/14395f9b/ambari-web/app/styles/application.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less
index ae7ba07..fdea9e5 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -5685,3 +5685,7 @@ input[type="radio"].align-checkbox, input[type="checkbox"].align-checkbox {
     }
   }
 }
+
+.config-widget-left-popover {
+  margin-left: -10px;
+}
\ No newline at end of file