You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/08/08 17:02:43 UTC
svn commit: r983422 - in /pivot/trunk:
tutorials/src/org/apache/pivot/tutorials/navigation/tab_panes.bxml
wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java
Author: gbrown
Date: Sun Aug 8 15:02:43 2010
New Revision: 983422
URL: http://svn.apache.org/viewvc?rev=983422&view=rev
Log:
Minor tweaks to tab pane tutorial and TerraTabPaneSkin.
Modified:
pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/tab_panes.bxml
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java
Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/tab_panes.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/tab_panes.bxml?rev=983422&r1=983421&r2=983422&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/tab_panes.bxml (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/navigation/tab_panes.bxml Sun Aug 8 15:02:43 2010
@@ -76,7 +76,7 @@ limitations under the License.
</Border>
</BoxPane>
- <BoxPane enabled="true">
+ <BoxPane enabled="false">
<TabPane.tabData>
<content:ButtonData icon="org/apache/pivot/tutorials/star.png"
text="Star"/>
@@ -93,8 +93,8 @@ limitations under the License.
<Border styles="{padding:2}">
<BoxPane orientation="vertical" styles="{padding:4, spacing:6}">
- <Checkbox bxml:id="closeableCheckbox" buttonData="Closeable" selected="true"/>
- <Checkbox bxml:id="collapsibleCheckbox" buttonData="Collapsible" selected="true"/>
+ <Checkbox bxml:id="closeableCheckbox" buttonData="Closeable"/>
+ <Checkbox bxml:id="collapsibleCheckbox" buttonData="Collapsible"/>
<Label text="Tab orientation:"/>
<bxml:define>
Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java?rev=983422&r1=983421&r2=983422&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java Sun Aug 8 15:02:43 2010
@@ -407,9 +407,10 @@ public class TerraTabPaneSkin extends Co
}
public Bounds getCloseTriggerBounds() {
- return new Bounds(getWidth() - (CLOSE_TRIGGER_SIZE + buttonPadding.right + 1),
- (getHeight() - CLOSE_TRIGGER_SIZE) / 2,
- CLOSE_TRIGGER_SIZE, CLOSE_TRIGGER_SIZE);
+ // Include an extra 2 pixels around the trigger for ease of use
+ return new Bounds(getWidth() - (CLOSE_TRIGGER_SIZE + buttonPadding.right + 1) - 2,
+ (getHeight() - CLOSE_TRIGGER_SIZE) / 2 - 2,
+ CLOSE_TRIGGER_SIZE + 4, CLOSE_TRIGGER_SIZE + 4);
}
}