Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 210830 Details for
Bug 369470
[Tree] Right Tree-Cell padding ignored when text is aligned to the right
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch that fixes the issue and updates test cases
patch.txt (text/plain), 2.07 KB, created by
Austin Riddle
on 2012-02-09 17:38:26 EST
(
hide
)
Description:
Patch that fixes the issue and updates test cases
Filename:
MIME Type:
Creator:
Austin Riddle
Created:
2012-02-09 17:38:26 EST
Size:
2.07 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt >Index: src/org/eclipse/swt/widgets/Tree.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Tree.java,v >retrieving revision 1.104 >diff -u -r1.104 Tree.java >--- src/org/eclipse/swt/widgets/Tree.java 6 Feb 2012 12:02:40 -0000 1.104 >+++ src/org/eclipse/swt/widgets/Tree.java 9 Feb 2012 22:37:39 -0000 >@@ -1781,7 +1781,7 @@ > } > > int getTextWidth( int index ) { >- int result = getCellWidth( index ) - getTextOffset( index ); >+ int result = getCellWidth( index ) - getTextOffset( index ) - getCellPadding().width; > if( isTreeColumn( index ) ) { > result -= ( TEXT_MARGIN.width - TEXT_MARGIN.x ); > } >#P org.eclipse.rap.rwt.test >Index: src/org/eclipse/swt/internal/widgets/treekit/TreeLCA_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/swt/internal/widgets/treekit/TreeLCA_Test.java,v >retrieving revision 1.23 >diff -u -r1.23 TreeLCA_Test.java >--- src/org/eclipse/swt/internal/widgets/treekit/TreeLCA_Test.java 17 Jan 2012 15:10:34 -0000 1.23 >+++ src/org/eclipse/swt/internal/widgets/treekit/TreeLCA_Test.java 9 Feb 2012 22:37:39 -0000 >@@ -214,7 +214,7 @@ > item1.setText( "item" ); > item1.setImage( image ); > ItemMetrics[] metrics = TreeLCA.getItemMetrics( tree ); >- assertEquals( 69, metrics[ 0 ].textWidth ); >+ assertEquals( 57, metrics[ 0 ].textWidth ); > } > > public void testPreserveValues() { >@@ -751,7 +751,7 @@ > > Message message = Fixture.getProtocolMessage(); > JSONArray actual = ( JSONArray )message.findSetProperty( tree, "itemMetrics" ); >- assertTrue( ProtocolTestUtil.jsonEquals( "[0,0,50,0,0,3,42]", ( JSONArray )actual.get( 0 ) ) ); >+ assertTrue( ProtocolTestUtil.jsonEquals( "[0,0,50,0,0,3,30]", ( JSONArray )actual.get( 0 ) ) ); > } > > public void testRenderItemMetricsUnchanged() throws IOException {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 369470
:
210700
| 210830