Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DialogCellEditor text problem
DialogCellEditor text problem [message #459821] Thu, 18 August 2005 12:52
Musachy Barroso is currently offline Musachy BarrosoFriend
Messages: 22
Registered: July 2009
Junior Member
When a cell with a DialogCellEditor is selected, the text seems to move
upward, the problem is in this method inside DialogCellLayout:

public void layout(Composite editor, boolean force) {
Rectangle bounds = editor.getClientArea();
Point size = button.computeSize(SWT.DEFAULT, SWT.DEFAULT, force);
if (contents != null)
contents.setBounds(0, 0, bounds.width - size.x, bounds.height);
button.setBounds(bounds.width - size.x, 0,
size.x, bounds.height)
}

I think the bounds should be set with x=1, and y=1, so it behaves just
like TextCellEditor.

musachy
Previous Topic:SWT Browser not sending cookies to pop up windows
Next Topic:Columns in TableView
Goto Forum:
  


Current Time: Thu Apr 18 12:30:40 GMT 2024

Powered by FUDForum. Page generated in 0.02232 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top