[kune-commits] r1344 - in trunk/src/main/java/cc/kune: common/public core/public gspace/client/resources gspace/client/viewers

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Thu May 5 05:14:37 CEST 2011


Author: vjrj_
Date: 2011-05-05 05:14:36 +0200 (Thu, 05 May 2011)
New Revision: 1344

Modified:
   trunk/src/main/java/cc/kune/common/public/kune-common.css
   trunk/src/main/java/cc/kune/core/public/ws.css
   trunk/src/main/java/cc/kune/gspace/client/resources/wsArmor.css
   trunk/src/main/java/cc/kune/gspace/client/viewers/ContentTitleWidget.java
Log:
Some style fixes

Modified: trunk/src/main/java/cc/kune/common/public/kune-common.css
===================================================================
--- trunk/src/main/java/cc/kune/common/public/kune-common.css	2011-05-05 02:24:50 UTC (rev 1343)
+++ trunk/src/main/java/cc/kune/common/public/kune-common.css	2011-05-05 03:14:36 UTC (rev 1344)
@@ -450,7 +450,7 @@
   vertical-align: top;
   padding-left: 3px;
   padding-right: 3px;
-  float: left;
+  /* float: left; */
 }
 
 .k-menuimtem-title {

Modified: trunk/src/main/java/cc/kune/core/public/ws.css
===================================================================
--- trunk/src/main/java/cc/kune/core/public/ws.css	2011-05-05 02:24:50 UTC (rev 1343)
+++ trunk/src/main/java/cc/kune/core/public/ws.css	2011-05-05 03:14:36 UTC (rev 1344)
@@ -393,6 +393,7 @@
   background: none;
   border: 0px;
   padding: 0 3px 0 0 !important;
+  height: 17px !important;
 }
 
 .k-sitebar-wave-status {
@@ -840,6 +841,7 @@
     white-space: nowrap;
 }
 */
+
 .k-sn-mainpanel .x-btn button,.k-sn-mainpanel button,button.k-button {
   font: 13px 'Ubuntu', arial;
   border: 2px solid #CCCCCC;
@@ -853,14 +855,14 @@
   -moz-border-radius: 5px;
   border-radius: 5px;
   vertical-align: middle;
-  line-height: 2em !important;
+/*  line-height: 2em !important; */
   outline: 0 none;
   /* height: 26px !important; */
   font-weight: bold;
   width: auto !IMPORTANT;
   width: 50px;
   min-width: 50px;
-  "
+  height: 28px;
   /*
 font-size:small;
     cursor: pointer;

Modified: trunk/src/main/java/cc/kune/gspace/client/resources/wsArmor.css
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/resources/wsArmor.css	2011-05-05 02:24:50 UTC (rev 1343)
+++ trunk/src/main/java/cc/kune/gspace/client/resources/wsArmor.css	2011-05-05 03:14:36 UTC (rev 1344)
@@ -207,8 +207,8 @@
   border-width: 7px;
   height: 0;
   width: 0;
-  position: absolute;
-  bottom: 47px;
+  position: relative;
+  bottom: 16px;
   left: 36px;
 }
 

Modified: trunk/src/main/java/cc/kune/gspace/client/viewers/ContentTitleWidget.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/viewers/ContentTitleWidget.java	2011-05-05 02:24:50 UTC (rev 1343)
+++ trunk/src/main/java/cc/kune/gspace/client/viewers/ContentTitleWidget.java	2011-05-05 03:14:36 UTC (rev 1344)
@@ -17,17 +17,18 @@
 public class ContentTitleWidget extends Composite {
   private final EditableLabel editableTitle;
   private final GSpaceArmor gsArmor;
+  private final I18nTranslationService i18n;
   private final IconsRegistry iconRegistry;
   private final Image titleIcon;
 
   public ContentTitleWidget(final I18nTranslationService i18n, final GSpaceArmor gsArmor,
       final IconsRegistry iconRegistry) {
+    this.i18n = i18n;
     this.gsArmor = gsArmor;
     this.iconRegistry = iconRegistry;
     final FlowPanel flow = new FlowPanel();
     titleIcon = new Image();
     editableTitle = new EditableLabel();
-    editableTitle.setTooltip(i18n.t("Click to edit"));
     flow.add(titleIcon);
     flow.add(editableTitle);
     initWidget(flow);
@@ -54,6 +55,11 @@
     }
     titleIcon.setVisible(hasIcon);
     editableTitle.setText(title);
+    if (editable) {
+      editableTitle.setTooltip(i18n.t("Click to edit"));
+    } else {
+      editableTitle.setTooltip("");
+    }
     editableTitle.setEditable(editable);
     docHeader.add(this);
   }




More information about the kune-commits mailing list