From do-not-reply at jboss.org Wed May 12 13:03:26 2010 Content-Type: multipart/mixed; boundary="===============0198862556794493777==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r3066 - in portal/trunk: web/eXoResources/src/main/webapp/javascript/eXo/webui and 1 other directories. Date: Wed, 12 May 2010 13:03:26 -0400 Message-ID: <201005121703.o4CH3QMO030526@svn01.web.mwc.hst.phx2.redhat.com> --===============0198862556794493777== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ndkhoiits Date: 2010-05-12 13:03:25 -0400 (Wed, 12 May 2010) New Revision: 3066 Modified: portal/trunk/portlet/dashboard/src/main/webapp/groovy/dashboard/webui/co= mponent/UITabPaneDashboard.gtmpl portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UITab= bedDashboard.js portal/trunk/web/eXoResources/src/main/webapp/skin/DefaultSkin/portal/we= bui/component/view/UIDashboard/Stylesheet.css Log: GTNPORTAL-1095 Edit some CSS and set offsetwidth for UITab in Dashboard = Modified: portal/trunk/portlet/dashboard/src/main/webapp/groovy/dashboard/w= ebui/component/UITabPaneDashboard.gtmpl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/portlet/dashboard/src/main/webapp/groovy/dashboard/webui/c= omponent/UITabPaneDashboard.gtmpl 2010-05-12 12:07:57 UTC (rev 3065) +++ portal/trunk/portlet/dashboard/src/main/webapp/groovy/dashboard/webui/c= omponent/UITabPaneDashboard.gtmpl 2010-05-12 17:03:25 UTC (rev 3066) @@ -20,13 +20,14 @@ = JavascriptManager jsManager =3D pcontext.getJavascriptManager(); jsManager.importJavascript("eXo.webui.UITabbedDashboard"); + jsManager.addOnLoadJavascript("eXo.webui.UITabbedDashboard.buildTab"); %> =
-
+
<% for(int i =3D 0;i < tabNbs;i++){ = node =3D nodes.get(i); @@ -56,7 +57,7 @@
-
+
">$tabLab= el "> 3D"DEL" Modified: portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webu= i/UITabbedDashboard.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UITa= bbedDashboard.js 2010-05-12 12:07:57 UTC (rev 3065) +++ portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UITa= bbedDashboard.js 2010-05-12 17:03:25 UTC (rev 3066) @@ -21,6 +21,12 @@ = init : function(){eXo.webui.UITabbedDashboard.isInRequest =3D false;}, = + buildTab : function() { + var uiWorkingWorkspace =3D document.getElementById("UIWorkingWorkspace"= ); + var uiTabbedDashboardPortlet =3D eXo.core.DOMUtil.findDescendantById(ui= WorkingWorkspace, "UITabbedDashboardPortlet"); + eXo.portal.UIPortalNavigation.buildMenu(uiTabbedDashboardPortlet); + }, + = renameTabLabel : function(e){ if(!e){ e =3D window.event; @@ -145,7 +151,9 @@ inputElement.type =3D "text"; inputElement.value =3D "Tab_" + tabElements.length; inputElement.style.border =3D "1px solid #b7b7b7"; - inputElement.style.width =3D "95px"; + inputElement.style.width =3D "45px"; +// inputElement.style.height =3D "14px"; +// inputElement.style.fontSize =3D "15px"; inputElement.onkeypress =3D eXo.webui.UITabbedDashboard.createDashboardP= age; inputElement.onblur =3D eXo.webui.UITabbedDashboard.cancelTabDashboard; inputElement.setAttribute('maxLength', 50); Modified: portal/trunk/web/eXoResources/src/main/webapp/skin/DefaultSkin/po= rtal/webui/component/view/UIDashboard/Stylesheet.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/web/eXoResources/src/main/webapp/skin/DefaultSkin/portal/w= ebui/component/view/UIDashboard/Stylesheet.css 2010-05-12 12:07:57 UTC (rev= 3065) +++ portal/trunk/web/eXoResources/src/main/webapp/skin/DefaultSkin/portal/w= ebui/component/view/UIDashboard/Stylesheet.css 2010-05-12 17:03:25 UTC (rev= 3066) @@ -97,15 +97,16 @@ } = .UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .NormalTab .MiddleTab, +.UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .HighlightNavigationTa= b .MiddleTab, .UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .SelectedTab .MiddleTa= b { - padding: 0px; + padding: 0px 10px; + _padding: 3px 10px; + white-space:nowrap; + font-weight: normal; } = -.UITabPaneDashboard .UIHorizontalTabs .UITab span { - margin: 3px 10px; - font-weight: bold; -} = + .UITabPaneDashboard .UIHorizontalTabs .UITab .CloseIcon { background: url('background/IconClose.gif') no-repeat center; width: 16px; height: 16px; @@ -134,6 +135,21 @@ line-height: 22px; } = +.UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .HighlightNavigationTa= b .LeftTab { + background: url(background/TabDashboard.gif) no-repeat left -44px; + padding-left: 4px; +} + +.UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .HighlightNavigationTa= b .RightTab { + background: url(background/TabDashboard.gif) no-repeat right -44px; + padding-right: 4px; +} + +.UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .HighlightNavigationTa= b .MiddleTab { + background: url(background/TabDashboard.gif) repeat-x left -66px; + line-height: 22px; +} + .UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .SelectedTab .LeftTab { background: url(background/TabDashboard.gif) no-repeat left top; } @@ -147,6 +163,21 @@ background: url(background/TabDashboard.gif) repeat-x left -22px; line-height: 22px; } + +.UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .EditnewTab .LeftTab { + background: url(background/TabDashboard.gif) no-repeat left top; +} + +.UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .EditnewTab .RightTab { + background: url(background/TabDashboard.gif) no-repeat right top; + padding-right: 4px; +} + +.UITabPaneDashboard .UIHorizontalTabs .GrayTabStyle .EditnewTab .MiddleTab= { + background: url(background/TabDashboard.gif) repeat-x left -22px; + line-height: 22px; +} + /*----------------------UIGadgetsSelectorForm-------------------*/ = .UIDashboardSelectContainer { @@ -182,6 +213,7 @@ = .UIDashboardSelectContainer .DashboardItemContainer .InputContainer { padding: 4px 0px 4px 10px; + _padding: 0px 10px; background: #ececec; } = --===============0198862556794493777==--